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
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
)
}
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
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
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