Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
converting json to xml
#3
Thanks for the tips I was able to install with pip but i am not sure where to put/link the python code in my code as you mentioned? what a bout a print statement?
import Json2xml

data = Json2xml.fromjsonfile('examples/example.json').data
data_object = Json2xml(data) data_object.json2xml()


Thanks!

I Imported the json2xml and now all of json2xml saying re declared json2xml above with no usage? can you update my code with what you are mentioning? so I can run it here and see?
Thanks!
Reply


Messages In This Thread
converting json to xml - by pasi12 - Mar-10-2017, 06:33 PM
RE: converting json to xml - by dudeisbrendan03 - Mar-10-2017, 07:07 PM
RE: converting json to xml - by pasi12 - Mar-10-2017, 07:53 PM
RE: converting json to xml - by dudeisbrendan03 - Mar-10-2017, 09:14 PM
RE: converting json to xml - by zivoni - Mar-10-2017, 09:36 PM
RE: converting json to xml - by dudeisbrendan03 - Mar-10-2017, 09:40 PM
RE: converting json to xml - by pasi12 - Mar-10-2017, 09:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Converting a json file to a dataframe with rows and columns eyavuz21 13 4,622 Jan-29-2023, 03:59 PM
Last Post: eyavuz21
  Converting cells in excel to JSON format desmondtay 4 1,775 May-23-2022, 10:31 AM
Last Post: Larz60+
  Trouble converting JSON String to Dictionary RBeck22 7 5,176 Mar-28-2019, 12:12 PM
Last Post: RBeck22

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020