iskra / jsonx

JSONX is an Erlang library for efficient decode and encode JSON, written in C.
Other
91 stars 32 forks source link

no_match should point to erroneous tuple #4

Open kpy3 opened 11 years ago

kpy3 commented 11 years ago

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([{<<"b">>, false},{<<"a">>, 999999999999999999999999999999999999999999999999999}]). {no_match,{<<"b">>,false}}

Pointing to tuple with error makes error finding easier.