An open API service indexing awesome lists of open source software.

https://github.com/ma-pony/xml2json

xml to json
https://github.com/ma-pony/xml2json

json python xml xml-parser

Last synced: 2 months ago
JSON representation

xml to json

Awesome Lists containing this project

README

          

# xml2json

### xml
```xml

1

Photo
https://photo_jpg.jpg
1

Photo
photo_jpg.jpg
2

2

Photo
https://photo_jpg.jpg
1

Photo
photo_jpg.jpg
2

```

### to json
```json
[
{
"Id": {"text": "1"},
"File": [
{
"Active": "true",
"FileType": {"text": "Photo"},
"Src": {"text": "https://photo_jpg.jpg"},
"Rank": {"text": "1"}
},
{
"Active": "true",
"FileType": {"text": "Photo"},
"Src": {"text": "photo_jpg.jpg"},
"Rank": {"text": "2"}
}
]
},
{
"Id": {"text": "2"},
"File": [
{
"Active": "true",
"FileType": {"text": "Photo"},
"Src": {"text": "https://photo_jpg.jpg"},
"Rank": {"text": "1"}
},
{
"Active": "true",
"FileType": {"text": "Photo"},
"Src": {"text": "photo_jpg.jpg"},
"Rank": {"text": "2"}
}
]
}
]
```