how do I get [{}]
in JSON? If I encode array()
in PHP, the JSON result is []
. What is [{}]
in JS anyway?
Thanks
how do I get Thanks |
||||
add comment |
you can use: To answer your second question of "what is it's an array, whose only element is an object with no members in it. |
|||
|
|
|||
|
[{}]
is an array containing a single empty object. – Kevin Stricker Sep 25 '11 at 20:04