How JSON is mapped
Each object key becomes an element and each value becomes its content. An array repeats its parent element once per item, which is how XML normally represents lists.
- Keys starting with the prefix become attributes
- A
#textkey becomes the element's text -
nulland empty arrays become empty tags -
&,<,>and quotes are escaped