Clearly the right solution is to use XML Object Notation, aka XON™!
JSON:
{"foo": ["bar", 42]}
XON:
<Object>
<Property>
<Key>foo</Key>
<Value>
<Array>
<String>bar</String>
<Number>42</Number>
</Arra>
</Value>
</Property>
</Object>
It gives you all the flexibility of JSON with the mature tooling of XML!
Edit: jesus christ, it actually exists https://sevenval.gitbook.io/flat/reference/templating/oxn