3 ms·
You can eval() json.. That's where it came from
by jbverschoor 5y ago
You can eval() json.. That's where it came from
- michaelmior 5y agoYou can in JavaScript but you almost certainly don't want to when you can just use JSON.parse and avoid the possibility of the execution of arbitrary code.
- jbverschoor 5y agoI'm not saying it's a good idea. Javascript itself has many bad ideas. I'm just saying that's where it all started.