Re:Unintuitive JSON Parsing
by Jasper_ on Saturday December 28, 2019 @08:55PM
(#21903309)
JSON.parse("(function() { })") doesn't parse either, despite being valid JavaScript. Both constructs are specific to JavaScript, and do not exist in JSON. Hence, JSON is a subset of JavaScript.
[ Parent
| on HN ]
There are no comments on this comment yet.