Fork me on GitHub

See also this demo on conversion into JHTML (from JSON).

string-key
a string (no child element needed for this primitive as string is the default)
boolean-key
false
number-key
3
null-key
null
array-key
  1. arr item 1 (string)
  2. true
  3. arr item 3 (string)
object-key
nested-key-1
Some (string) value
nested-key-2
Another (string) value