a tool to convert json to xml
Install with pip:
pip install json2xml
use Json2Xml class to convert json to xml
from json2xml import Json2Xml
d={
"name": "John",
"age": 30,
"cars": [{"name": "Ford"}],
"family": "johnson",
}
result = json2xml(d)
print(result)
<name>John</name>
<age>30</age>
<cars>
<name>Ford</name>
</cars>
<family>johnson</family>
"""
json2xml is released under the MIT License. See the bundled LICENSE file for details.