RE: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Tyler Lawson
PROTECTED] Sent: Friday, April 27, 2007 4:26 PM To: Tyler Lawson Cc: 'Antony Dovgal'; internals@lists.php.net Subject: Re: [PHP-DEV] JSON ampersand patch Well, your example is weird in many ways. First, you don't ever send $json_data over the wire as far as I can tell. And if you did, a

Re: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Rasmus Lerdorf
; string(16) "This is my data " > > ["it is really great"]=> > string(0) "" > } > > With this patch it would be: > > array(4) { > ["data"]=> > string(42) "This is my data \u0026 it is really great" > } > >

RE: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Tyler Lawson
reat"]=> string(0) "" } With this patch it would be: array(4) { ["data"]=> string(42) "This is my data \u0026 it is really great" } Tyler -Original Message- From: Antony Dovgal [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 3:59 PM To: T

Re: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Antony Dovgal
On 04/27/2007 11:39 PM, Tyler Lawson wrote: Hello, I hope this is the right place for this, as I'd like to post a patch for your consideration to the way the JSON handles ampersands. I have had problems sending JSON data back and forth over POST requests, where an ampersand separates variables.

[PHP-DEV] JSON ampersand patch

2007-04-27 Thread Tyler Lawson
Hello, I hope this is the right place for this, as I'd like to post a patch for your consideration to the way the JSON handles ampersands. I have had problems sending JSON data back and forth over POST requests, where an ampersand separates variables. This patch will convert "&" into "\u0026", w