Re: Removing basic types from our JSON parser

From: Date: Sun, 14 Dec 2008 08:47:00 +0000
Subject: Re: Removing basic types from our JSON parser
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-42250@lists.php.net to get a copy of this message
On Sun, Dec 14, 2008 at 12:39 AM, Rasmus Lerdorf <rasmus@lerdorf.com> wrote: > Eh? Read what you wrote there. If json wasn't pure javascript, how in > the world would eval() work on it? Sorry. I guess I meant it didn't execute by itself, but needed to be interpreted using something like eval and/or thrown into a variable before it was useful. Otherwise it's just text. I'm not sure why we had to do that workaround I previously mentioned, and I cannot find a repository with that old code, but nowadays json_encode seems to work seamlessly for all the data we exchange (which are strings, ints, arrays, no objects, possibly not even booleans) and just wanted to voice off if there was any possible incompatibility that may be introduced here. I'll go back in my corner now :)

« previous php.internals (#42250) next »