JSON for Humans.
JSON is great. Until you miss that trailing comma... or want to use comments. What about multiline strings? JSONH provides a much more elegant way to write JSON that's designed for humans rather than machines.
Since JSONH is compatible with JSON, any JSONH syntax can be represented with equivalent JSON.
JsonhVscode is a syntax highlighter for JSONH v1 using TextMate Grammars.
In the following example, the string "hello" is incorrectly highlighted as a property name of a braceless root object.
"hello"
In the following example, the property "\nc": "d"
is incorrectly rendered as invalid.
"a": "b"
"
c": "d"
This can be worked around by adding a comma after the first property.
The reason is that property names end at the RegEx ,|(?=^[^:]*:)
meaning a comma or the first line containing a colon.