4 ms·
> compared to the simplicity offered by JSON.parse JSON.parse() came a lot later. People started with eval(), which lead to quite some problems (executing code
by johannes1234321 3y ago
> compared to the simplicity offered by JSON.parse
JSON.parse() came a lot later. People started with eval(), which lead to quite some problems (executing code returned from some third party service, what could go wrong ....) and then various other attempts at parsing.
- kentbrew 3y agoI was curious about this so I looked it up. We didn't have JSON.parse and JSON.stringify in place worldwide until fourteen years later. Horrible times. https://caniuse.com/?search=JSON https://caniuse.com/?search=JSON