4 ms·
Except that JSON is a valid JavaScript object, and JSON5 is not.
by yosito 2y ago
Except that JSON is a valid JavaScript object, and JSON5 is not.
- Zamicol 2y agoWhy is it not? My understanding is that it is a valid ES5 and forward object.
- ahartmetz 2y agoUnless there's a direct lie in the description of JSON5 ("subset of ECMAScript"), JSON5 objects are valid JS objects.
- tubthumper8 2y agoCan you provide an example?