Re: RFC: Short syntax for Arrays (redux)
| From: | Sanford Whiteman | Date: | Wed, 01 Jun 2011 22:24:38 +0000 |
| Subject: | Re: RFC: Short syntax for Arrays (redux) | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52719@lists.php.net to get a copy of this message | ||
> Vs. the JSON form:
> {
> time: {'$and': [
> {'$gt': strtotime('-1 day')},
> {'$lt': time()},
> ]},
> '$or': [
> {foo: 'bar'},
> {hello: 'world'}
> ]
> }
That isn't valid JSON for many different reasons... if you think
that's "pure JSON," you need to spend some time with JSONLint.
If you (and others) mean "Javascript object literal," say it.
(Similarly, if you mean "Javascript," don't say "jQuery" <gags>.)
-- S.