Fri, Dec 12, 2008 at 7:50 PM, Scott MacVicar <sc...@macvicar.net> wrote:
> The problem here is that none of the other JSON parsers in any other > language support this and more importantly the browsers [2] which are now > adding native JSON support. Users are frequently expecting the result from a > json_encode in PHP to just work with JSON.parse() on the client side. [3] > > I have a patch for this that implements the RFC exactly and makes secure > json_encode only works with objects and arrays. definately +1 we use json both encoding and decoding to interact with javascript and ensuring that PHP's built-in json is standards compliant is an absolute must. -please- make sure it works both encoding php -> js, decoding js -> php for all relevant types in both languages. thank you :) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php