ID: 44321
Comment by: tom at inetz dot com
Reported By: vzeman at gmail dot com
Status: Open
Bug Type: JSON related
Operating System: Windows/Linux
PHP Version: 5.2.5
New Comment:
I think the problem here is that json_decode has problems decoding
strings with control characters. I have experienced this problem with
multiple control characters.
Previous Comments:
------------------------------------------------------------------------
[2008-03-04 12:29:28] vzeman at gmail dot com
Description:
------------
json_decode will not decode string if in value is string like ""
Reproduce code:
---------------
try to decode string like this:
{"params":[{"body":"Hello,Regards,"}]}
Expected result:
----------------
params object should contain entry body with text: Hello,Regards,
Actual result:
--------------
encoding will stop on character R
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44321&edit=1