Re:Bringing the Unix philosophy to the 21st century (2019)
by iainmerrick on Tuesday August 24, 2021 @07:02PM
(#28296058)
Each to their own!
A big part of the difference is that all the JSON keys are quoted, which I agree is ugly (I like JSON5 myself).
You’ve also omitted the “menuitem” from the S-expr version. That could have been omitted from the JSON too but I assume it’s meant to be there for some good reason.
S-expressions are arrays, and maps are really just degenerate unsorted arrays of key-value pairs. Taking a look at https://json.org/example.html, I think this is easily more readable:
than: