Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

JSON does not have to have a dictionary at the root. You can have just an array.


Looks like you're right. From http://www.ietf.org/rfc/rfc4627.txt:

"A JSON text is a serialized object or array."

Now I don't know why I thought this wasn't allowed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: