Skip to content Skip to sidebar Skip to footer

Python Json To Csv

I am trying to convert a json data set file into csv. I am really new to python, and have been looking on the forums and cannot seem to resolve my issues. I have attached the jso

Solution 1:

Your error happens because you made a tuple:

inputFile = ("rows.json?accessType=DOWNLOAD", "r")

And you're trying to use json.load in that tuple. Since json.load works only on files, you need to call the open function:

inputFile = open("rows.json?accessType=DOWNLOAD", "r")

The "r" part indicates you're opening the file for reading.

Post a Comment for "Python Json To Csv"