Comments (2)
Ah, that does seem useful. I don't think it would actually be very hard to support; we could introduce a JSON3.read!(json, x::T)
public function to essentially "populate x
" from fields found in json. Internally, it would also not be a ton of work, because we'd make the main JSON3.read
for mutables take an existing x::T
, which JSON3.read!
would call directly, and JSON3.read
would just create a x = T()
and pass it to the same. Feel like taking a stab at it?
from json3.jl.
Implemented in #79
from json3.jl.
Related Issues (20)
- `dateformat` keyword argument passed to UUID constructor HOT 2
- Get from https url in company network with self signed certificate HOT 2
- Parsing with custom type JSON3 makes performance worse HOT 4
- JSON3.read files directly HOT 6
- Unable to write negative big integers HOT 2
- Can't serialize unitful quantities HOT 2
- JSON3.pretty extremely buggy
- Bug: End of input may not be valid
- Critical: Vector of Vector raise Exception
- invalid builtin function call: Base.getfield(t::NamedTuple{(), Tuple{}}, i::Symbol)
- Allow typed `JSON3.read` on `JSON3.Array` HOT 3
- no method matching JSON3.read(::Cmd, ::Type) HOT 2
- Alternative to wrapper types? HOT 1
- Serializing/deserializing nulls vs. empty vectors HOT 1
- `JSON3.read` doesn't call `construct(T, args...; kw...)` for `Struct` types HOT 1
- new patch version ? HOT 1
- Bug in JSON3.@generatetypes - identified Int64 instead of Float64 HOT 1
- `JSON3.read(json; jsonlines=true)` can't handle trailing newlines
- Add partially typed objects
- StructTypes.Mutable() does not call the inner constructor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json3.jl.