2 ms·
Both JSON and YAML are very difficult to construct parsers for. To make matters worse, both formats are full of pitfalls: http://seriot.ch/parsing_json.php ht
by Annatar 7y ago
Both JSON and YAML are very difficult to construct parsers for.
To make matters worse, both formats are full of pitfalls:
http://seriot.ch/parsing_json.php http://seriot.ch/parsing_json.php
https://arp242.net/yaml-config.html https://arp242.net/yaml-config.html
using either of these, in my opinion, is extremely misguided.
- dev_dull 7y agoThe flip side to that is that json and yaml parsers exist in every language, and would be more than capable of replacing any logic you’d find in a CSV.
- Annatar 7y agoCSV's are a data structure. They do not contain any logic.
- chucksmash 7y agoCan't find a source for it now, but one of the design goals of JSON iirc was that it should be easy to parse. You should have a go at writing a JSON parser to convince yourself it isn't hard. Can manually lex it in less than 150 lines of Python.