Created
June 16, 2020 16:54
-
-
Save Allwin12/0521e8bf605111fd2e376f2e227a3770 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from json2xml import json2xml | |
from json2xml.utils import readfromurl, readfromstring, readfromjson | |
data = '''{ | |
"name": "John", | |
"job": "Engineer", | |
"dob": "23-04-1986", | |
"age": 34, | |
"country": "Brazil" | |
}''' | |
data = readfromstring(data) | |
print(json2xml.Json2xml(data).to_xml()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment