[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, which

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

RE: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Tyler Lawson
) } 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: Tyler Lawson Cc: internals@lists.php.net Subject: Re: [PHP-DEV] JSON

Re: [PHP-DEV] JSON ampersand patch

2007-04-27 Thread Rasmus Lerdorf
PROTECTED] Sent: Friday, April 27, 2007 3:59 PM To: Tyler Lawson Cc: internals@lists.php.net Subject: Re: [PHP-DEV] JSON ampersand patch 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

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, are you actually