Re:Parsing JSON is a Minefield
by Volt on Wednesday October 26, 2016 @11:17PM
(#12802675)
JS has stringify and parse, so there ought to be a JSON parser somewhere.
[ Parent
| on HN ]
One thing that the article mentions is that there are in fact strings that are valid JSON but not valid JS object literals.
https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...
A modern JS implementation should also have a JSON parser