Re: Removing basic types from our JSON parser
| From: | mike | Date: | Sat, 13 Dec 2008 03:58:48 +0000 |
| Subject: | Re: Removing basic types from our JSON parser | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42230@lists.php.net to get a copy of this message | ||
Fri, Dec 12, 2008 at 7:50 PM, Scott MacVicar <scott@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
:)