Matt Wilmas
efd9d3482d
Avoid 2 conversions when decoding numbers
2009-03-19 19:25:42 +00:00
Scott MacVicar
2d43af2707
Deal with overflow when decoding large numbers
2009-03-17 14:56:49 +00:00
Scott MacVicar
de4891ab2a
Fix bug #47644 - Valid integers are truncated with json_decode()
2009-03-17 02:00:08 +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
d0cf756f7f
Fix Windows build
2008-12-17 15:46:00 +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
Matt Wilmas
509b50ed70
Changed logic for LONG_MIN
2008-12-02 14:50:01 +00:00
Rasmus Lerdorf
664bb141a1
We can afford a larger stack here and other json parsers out there
...
go deeper than 128.
2008-07-30 13:57:47 +00:00
Yiduo (David) Wang
95da0dc570
Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:15:07 +00:00
Antony Dovgal
a819499088
fix WS, CS and other S
2007-07-12 09:55:41 +00:00
Ilia Alshanetsky
71bc2b7f8f
MFB: Handle very small longs via double
2007-06-13 17:57:10 +00:00
Ilia Alshanetsky
b59b26c4bf
MFB: Fixed bug #41673 (json_encode breaks large numbers in arrays).
2007-06-13 17:10:06 +00:00
Antony Dovgal
41ec253ac8
oops, empty properties are not allowed
2007-06-08 08:57:21 +00:00
Antony Dovgal
445f777480
MFB: fix #41504 (json_decode() incorrectly decodes JSON arrays with empty string keys).
2007-06-08 08:51:46 +00:00
Rasmus Lerdorf
814847dba2
MFB 5_2 - increase json parser depth from 20 to 128
2007-05-24 22:39:06 +00:00
Antony Dovgal
b21fe28568
fix #41403 (json_decode cannot decode floats if localeconv decimal_point is not '.')
2007-05-16 12:53:36 +00:00
Ilia Alshanetsky
68a31e78d3
MFB: Fixed bug #41067 (json_encode() problem with UTF-16 input).
2007-04-19 22:49:11 +00:00
Andrei Zmievski
1714d379d9
MFB (handling of control characters)
2007-04-16 16:52:20 +00:00
Dmitry Stogov
a1130e84bf
ZTS fix
2006-10-18 07:41:33 +00:00
Andrei Zmievski
d33a905a16
Unicode support in JSON functions.
2006-10-17 17:56:54 +00:00
Antony Dovgal
7d3057410c
initialize variable
2006-07-25 09:06:47 +00:00
Nuno Lopes
770b92198f
MFB
2006-07-22 15:23:23 +00:00
Antony Dovgal
8635f4fd23
ZTS fix
2006-07-20 09:18:46 +00:00
Antony Dovgal
321184da5e
fix segfault caused by empty keys is JSON data
...
add test
2006-07-20 08:23:45 +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