note 97718 deleted from function.json-decode by danbrown
| From: | danbrown@php.net | Date: | Wed, 05 May 2010 03:40:16 +0000 |
| Subject: | note 97718 deleted from function.json-decode by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168946@lists.php.net to get a copy of this message | ||
Note Submitter: Matthew Flaschen
----
{ "index" : [undefined] }
is not valid JSON. null is a valid JSON token, but undefined is not. JSON.stringify will handle
this for you.
"Some String" alone is not valid JSON either. The root of a JSON text must be an object
or an array.
JSON Lint is a simple way to check your JSON syntax.