Re: JSON inclusion in core
| From: | Daniel Convissor | Date: | Mon, 23 Jan 2006 17:00:26 +0000 |
| Subject: | Re: JSON inclusion in core | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-21653@lists.php.net to get a copy of this message | ||
Hi Andi:
On Sat, Jan 21, 2006 at 08:01:25AM -0800, Andi Gutmans wrote:
>
> Well I think the right thing to do is pass an array of "allowed"
> classes into json_decode() and raise an error/exception if it's not
> in the list.
>
> I think it wasn't clear to some people why this is needed.
> I think enabling the seamless mapping of objects in between the
> client and server is extremely useful.
So are you proposing a JSON string like this:
var weehaw = {"f":"foo","b":"bar"};
Would get converted into a PHP object named "weehaw?"
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409