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

Even when the original author said it was "discovered"?

JSON5 is closer to "javascript object notation" than JSON itself. It's partly an update and partly a removal of arbitrary restrictions.



Except that JSON is a valid JavaScript object, and JSON5 is not.


Why is it not? My understanding is that it is a valid ES5 and forward object.


Unless there's a direct lie in the description of JSON5 ("subset of ECMAScript"), JSON5 objects are valid JS objects.


Can you provide an example?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: