note 69383 added to function.json-decode
| From: | giunta dot gaetano at sea-aeroportimilano dot it | Date: | Mon, 04 Sep 2006 10:20:43 +0000 |
| Subject: | note 69383 added to function.json-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116650@lists.php.net to get a copy of this message | ||
Please note that this function does NOT convert back to PHP values all strings resulting from a call
to json-encode.
Since the json spec says that "A JSON text is a serialized object or array", this function
will return NULL when decoding any json string that does not represent either an object or an array.
To successfully encode + decode single php values such as strings, booleans, integers or floats, you
will have to wrap them in an array before converting them.
----
Server IP: 66.163.161.117
Probable Submitter: 85.20.248.12 (proxied: 1.1 DMZ01614280)
----
Manual Page -- http://www.php.net/manual/en/function.json-decode.php
Edit -- https://master.php.net/note/edit/69383
Del: integrated -- https://master.php.net/note/delete/69383/integrated
Del: useless -- https://master.php.net/note/delete/69383/useless
Del: bad code -- https://master.php.net/note/delete/69383/bad+code
Del: spam -- https://master.php.net/note/delete/69383/spam
Del: non-english -- https://master.php.net/note/delete/69383/non-english
Del: in docs -- https://master.php.net/note/delete/69383/in+docs
Del: other reasons-- https://master.php.net/note/delete/69383
Reject -- https://master.php.net/note/reject/69383
Search -- https://master.php.net/manage/user-notes.php