note 85902 rejected from function.json-decode by danbrown
| From: | danbrown@php.net | Date: | Tue, 23 Sep 2008 23:20:10 +0000 |
| Subject: | note 85902 rejected from function.json-decode by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144651@lists.php.net to get a copy of this message | ||
Note Submitter: mdesaro at gmail dot com
----
Can anyone explain this one?
$a = '{ "tag":"<b></b>" }';
echo json_encode( json_decode($a) );
this outputs <b></b> when you would think it would output exactly the input. For some
reason it adds an extra slash that it doesnt remove.
Bug or not?