On 24/09/12 19:09, Andrew Faulds wrote:
I think perhaps that's the wrong approach. It's valid JSON to have a
list literal at the top level as well,
Excuse my brief brain lapse. PHP arrays are fine for sequential data as
well, and you could also have any other JSON literal value in $_POST.
(Although, decoding objects to arrays would be inconvenient, I'd much
prefer to decode to objects, and doing that might be confusing
considering $_POST is usually an associative array...)
--
Andrew Faulds
http://ajf.me/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php