On Tue, Apr 17, 2018 at 05:17:13PM +0200, Paolo Bonzini wrote: > On 17/04/2018 16:42, Eduardo Habkost wrote: > >> Should we introduce yet another markup language into QEMU? (pardon the > >> pun). > > Fair question. What are the existing markup languages in QEMU we > > could use? > > > > JSON is an option, but I believe YAML is more readable. > > Isn't YAML actually a superset of JSON that adds "magic indent", bullet > lists and a bunch of other stuff that you're not using? You can still > use JSON to express a complicated dictionary for example.
Things I like about YAML in comparison to JSON: - Comments - No need to count number of closing brackets or worry about trailing commas - Convenient ways to write long strings without "\\"another layer of escaping syntax\\"" JSON is not a language for humans, YAML is. -- Eduardo