Sure, but there are tradeoffs to consider: JSON may be difficult and inconvenient to use for human interaction, but on the other hand it's also really slow for machine reading and writing. Plus you have the added bonus of it being an inefficient use of bandwidth.
Re:Why Graphiti?
by The_rationalist on Saturday October 26, 2019 @07:28AM
(#21363070)
Especially when there are almost consensual better alternatives https://hjson.org
Re:Why Graphiti?
by vertex-four on Saturday October 26, 2019 @09:08AM
(#21363424)
Uhh, no. Part of the reason JSON is useful is that it's easy to write a correct parser in comparison to most other things - adding a bunch of the complexity of YAML back to JSON seems a bad idea. This makes it possible to use JSON as a serialisation layer for network protocols without introducing too much additional risk of parsing-related vulnerabilities.
I didn't get the memo where we decided that we love JSON.