note 84624 deleted from function.json-decode by danbrown

From: Date: Wed, 30 Jul 2008 19:07:28 +0000
Subject: note 84624 deleted from function.json-decode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142957@lists.php.net to get a copy of this message
Note Submitter: coyote4til7 at gmail dot com ---- FWIW, the code behind json_decode is using an overly strict interpretation of the JSON spec. If you're feeding json encoded from the browser and the object keys (or member names in JSON terms) are not quoted, json_decode fails. So, if you're hoping to parse JSON that also can be properly handled by Javascript's eval, you're going to have to use another tool. I'm usuing the json toolkit in xml-rpc for php (check sourceforge) quite successfully. This seems like a bug to me, but when I reported it as a bug (#45563), it was marked bogus.

« previous php.notes (#142957) next »