2 ms·
> Every language brings a JSON parser Yeah more or less that's true, but in typed languages especially it's pretty inconvenient (unless you circumvent the type
by camgunz 7y ago
> Every language brings a JSON parser
Yeah more or less that's true, but in typed languages especially it's pretty inconvenient (unless you circumvent the type system or dump directly into a hash table, but that's usually bad).
> It's easy to debug
There are tons of corner cases re: parsing JSON [1]. Plus things like canonicalization and duplicate keys are pretty confounding.
> You also don’t have any overhead for parsing in JavaScript based editors like VSCode and Atom.
JSON isn't JavaScript and parsing it with `eval` is super bad practice. And there is indeed parsing overhead [2].
[1]: http://seriot.ch/parsing_json.php#4 http://seriot.ch/parsing_json.php#4
[2]: https://github.com/msgpack/msgpack-javascript#benchmark https://github.com/msgpack/msgpack-javascript#benchmark