Commit Graph

6 Commits

Author SHA1 Message Date
Rasmus Lerdorf
f0fb480b13 There is no error code set for json_last_error if an invalid utf8
sequence is encountered.  This fixes that.  Might be worthwhile to
merge to 5.3 despite the new constant.
2009-07-22 21:32:58 +00:00
Scott MacVicar
1c1ba8cc06 Allow the json_decode() depth to be any size, but keep the static one around for now. It might make sense to allow an unbound depth. 2009-05-14 00:13:57 +00:00
Scott MacVicar
b0b32deb12 Add json_last_error() for getting a bit of information about what failed during a decode, also fixes a segfault when we have [1}
[DOC]
2008-12-19 02:00:59 +00:00
Scott MacVicar
cae85c867a Update the JSON parser with that on json.org, biggest change here is code readability. Less magic numbers in the state table.
Add missing reflection information to json_encode()
Fixes bug #45791 with 0e0 not being supported as a value
Error values are stored when encountered during parsing
2008-12-17 14:39:56 +00:00
Ilia Alshanetsky
369b7e44a0 MFB: Fixed compiler warnings and enable Json by default. 2006-07-19 16:17:56 +00:00
Omar Kilani
94a140214c - Rewritten for better performance. 3-8x faster encodes, 2-4x faster decodes.
- No longer uses json-c, implements it's own JSON parser and encoder.
- JSON parser based on Douglas Crockford's JSON_checker.
2006-01-31 08:59:06 +00:00