Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 612 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 612 Bytes

XML to JSON

A python script which parses the XML and converts it into JSON.

python main.py <file-path> [options]
python main.py --help

Use -o option to pass the output file name.

python main.py example.xml -o output.json

Here is an example,

XML File,

xml file

Converted JSON File,

json file

NOTE

The file should not contain more than one tag with same name on same level.