https://github.com/ipfans/jsonxml
Converter between xml and json
https://github.com/ipfans/jsonxml
Last synced: over 1 year ago
JSON representation
Converter between xml and json
- Host: GitHub
- URL: https://github.com/ipfans/jsonxml
- Owner: ipfans
- License: mit
- Created: 2013-12-20T10:44:27.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-20T10:51:37.000Z (over 12 years ago)
- Last Synced: 2025-01-31T10:11:27.147Z (over 1 year ago)
- Language: Python
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JSONXML
========
Converter between xml and json
Usage
----
```
data = {
"data": {
"a": "1",
"b": "2",
},
}
json_data = json.dumps(data)
xml_data = json2xml(json_data)
print xml_data
json_data = xml2json(xml_data, True, 0)
print json_data
```
License
-------
This code released under the terms of the [MIT license](http://opensource.org/licenses/MIT).
Contributors
------------
This script was originally written by R.White, Hay Kranen, George Hamilton and Dan Brown. Thanks for your works.