Another approach would be to create a keyword + suffix based language where the type comes from the suffix. For example:
resultMap
nameString jtree
versionString 30.0.0
descriptionBlockString
Simplify your code with Tree Notation. This jtree package
includes a Tree Notation parser, compiler-compiler, and virtual
machine for Tree Languages, as well as sample languages, implemented
in TypeScript.
prettierMap
useTabsBoolean false
tabWidthInt 2
semisBoolean false
printWidthInt 160
Tree Object Notation.
Dug is a demo Tree Language showing one approach to a JSON isomorphism (https://jtree.treenotation.org/designer/#standard%20dug).
Another approach would be to create a keyword + suffix based language where the type comes from the suffix. For example: