As long as we are on topic of JSON alternatives suitable for configuration, I've been tinkering with various minimal syntaxes and formats for a long time, most notably Jevko[0].
One format based on that I've been conjuring up recently would represent the first example from the RON README like so:
GameConfig[ optional struct name
window size [[800] [600]]
window title [PAC-MAN]
fullscreen [false]
mouse sensitivity [1.4]
key bindings [
up [Up]
down [Down]
left [Left]
right [Right]
Uncomment to enable WASD controls
;[
W [Up]
A [Down]
S [Left]
D [Right]
]
]
difficulty options [
start difficulty [Easy]
adaptive [false]
]
]
I put a syntax-highlighted version and some more details in this gist[1].
I wonder what you guys think about such a minimal alternative.
One format based on that I've been conjuring up recently would represent the first example from the RON README like so:
I put a syntax-highlighted version and some more details in this gist[1].I wonder what you guys think about such a minimal alternative.
[0] https://jevko.org
[1] https://gist.github.com/djedr/4eeac1de466512ec211ff17cfd1f5e...