note 78928 rejected from function.json-decode by nlopess

From: Date: Fri, 02 Nov 2007 22:01:35 +0000
Subject: note 78928 rejected from function.json-decode by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-131954@lists.php.net to get a copy of this message
Note Submitter: blackjackdevel at gmail dot com ---- I couldn't use this function, i tryed to pass some json code that uset several parameters in the objects(these json strings worked well with JS ), so i tryied and could'nt get it a example string would be: { "menus":{"menu0":[{"a":"B" , "c":"D" , "e":"F"}, { "g":"H" , "i":"J", "k":"L"}], "menu1":"FOO", } } So when i added the second element "menu1" it returned null v_v.A friend gave me the following class to use(it's not my authoring neither my friends authoring) and it worked wondefully: http://pear.php.net/pepr/pepr-proposal-show.php?id=198

« previous php.notes (#131954) next »