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 https://arp242.net/yaml-config.html
using either of these, in my opinion, is extremely misguided.