note 73114 deleted from function.json-decode by felipe
| From: | felipe@php.net | Date: | Mon, 10 Dec 2007 17:32:57 +0000 |
| Subject: | note 73114 deleted from function.json-decode by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133172@lists.php.net to get a copy of this message | ||
Note Submitter: whatifif at yahoo dot com
----
I think there is a bug in json_decode() method.
When I try to decode JSON string {"a":"<p>test</p>"} into array on
server-side, it fails.
$input='{"a":"<p>test</p>"}';
$input=stripslashes($input);//ro remove slashes if any.
$output=json_decode($input, true);//it fails
<p>, <P> tags should not be in the JSON string.