Converts XML values to JSON values.
Attributes are translated with prefix @ , processing instructions with ? prefix to their name as a key in a JSON object.
When there are multiple texts surrounding inner elements, those are translated as JSON array elements instead of an object with the specified key.
Example: <a b="2"><v>some text</v></a> gets translated to: {"a": {"@b": "2", "v": {"#text": "some text"} } }