note 89596 deleted from function.json-decode by thiago
| From: | thiago@php.net | Date: | Mon, 16 Mar 2009 12:59:03 +0000 |
| Subject: | note 89596 deleted from function.json-decode by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-151994@lists.php.net to get a copy of this message | ||
Note Submitter: Jay
----
As a note there seems to be some strangeness surrounding the handling of true and false when
unquoted.
<?PHP
// returns Array([thisisabool] => 1)
print_r(json_decode('{"thisisabool":true}',true));
// returns Array([thisisabool] =>)
print_r(json_decode('{"thisisabool":false}',true));
?>