On Sun, Dec 14, 2008 at 12:39 AM, Rasmus Lerdorf <ras...@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 :) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php