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

So the standard says a valid JSON text complies to the JSON value grammar. So a valid JSON text can be just one JSON value, like a number or true or false.. however JSON linters always say they expect a { or [ ... who is right?


http://jsonlint.com/ expects [ or { first. http://zaach.github.io/jsonlint/ does not and seems to comply to the standard as I interpret it.




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

Search: