https://github.com/surajkareppagol/parser
🇵 Python Script: XML To JSON Conversion Tool.
https://github.com/surajkareppagol/parser
converter parser xmltojson
Last synced: 11 months ago
JSON representation
🇵 Python Script: XML To JSON Conversion Tool.
- Host: GitHub
- URL: https://github.com/surajkareppagol/parser
- Owner: surajkareppagol
- Created: 2023-09-05T03:22:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T02:47:43.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T15:40:01.575Z (over 1 year ago)
- Topics: converter, parser, xmltojson
- Language: Python
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# XML to JSON
A python script which parses the XML and converts it into JSON.
```bash
python main.py [options]
```
```bash
python main.py --help
```
Use `-o` option to pass the output file name.
```bash
python main.py example.xml -o output.json
```
Here is an example,
`XML File`,

Converted `JSON File`,

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