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
,
Converted JSON File
,
The file should not contain more than one tag with same name on same level.