Skip to content

zarinpy/json2xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a tool to convert json to xml


Usage

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>

"""

License

json2xml is released under the MIT License. See the bundled LICENSE file for details.

About

a convertor, json to xml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages