jsonx
jsonx copied to clipboard
JSONX is an Erlang library for efficient decode and encode JSON, written in C.
This makes it easier to use jsonx on an older Erlang/OTP platform.
Hi, I added encoding to maps, and decoding from map. Included tests and did map feature detection on both the C build, and in the erlang wrappers.
2 byte utf8 range should be 0x800 - 0x10000 Added tests with chinese characters
New decode option `number_format` - when set to `decimal`, numbers with exponent or fraction are decoded to erlang-decimal compatible tuple. For original behaviour omit this option or set it to...
Returns {error, invalid_string, _} when trying to parse string with \ud83d
``` erlang -module(json_t). -record(json_t, { name :: binary(), age = 0 :: pos_integer(), spouse :: #json_t{} }). -record(json_t2, { name :: binary(), age = 0 :: pos_integer(), spouse :: #json_t{}...
_Note: this very long issue contains three different examples, that's why it's so long :)_ I'm working with [Neo4J REST API](http://docs.neo4j.org/chunked/stable/rest-api.html). The JSON they return for some of the objects...
If one tries to encode large proplist, it is difficult to find property with error because jsonx always points to first tuple: 3> jsonx:encode([{, false},{, 999999999999999999999999999999999999999999999999999}]). {no_match,{,false}} Pointing to tuple...