4 ms·
Partly because JSON has the lovely feature of being able to just eval() it into an object in browsers.
by erikpukinskis 14y ago
Partly because JSON has the lovely feature of being able to just eval() it into an object in browsers.
- deleted 14y ago[deleted]
- alcuadrado 14y agoThat's not the right way to parse JSON, it's really insecure
- Too 14y agoAnd slow, JSON.parse is magnitudes faster than using user-javascript to parse it yourself.
- chc 14y agoThat's not really a lovely feature in this day and age. If anything it's an unfortunate artifact, as the right way to deserialize JSON is JSON.parse().