note 69383 deleted from function.json-decode by googleguy

From: Date: Fri, 14 Jun 2013 10:03:42 +0000
Subject: note 69383 deleted from function.json-decode by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-195210@lists.php.net to get a copy of this message
Note Submitter: giunta dot gaetano at sea-aeroportimilano dot it ---- 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.

« previous php.notes (#195210) next »