About 1,710,000 results
Open links in new tab
  1. python - Reading JSON from a file - Stack Overflow

    If you are reading the data from the Internet instead, the same techniques can generally be used with the response you get from your HTTP API (it will be a file-like object); however, it is heavily …

  2. python - Loading and parsing a JSON file with multiple JSON objects ...

    You probably don't want to append each result to one list and then process everything if your file is really big. If you have a file containing individual JSON objects with delimiters in-between, use How do I …

  3. Read local JSON file with Python - Stack Overflow

    Jul 9, 2020 · 35 json.loads() expects the json data to already be a string -- so it's trying to interpret the filename Data2019.json as actual json data. Open the file, and then pass the file object to json.load():

  4. Python read JSON file and modify - Stack Overflow

    Next, we use the 'with open ()' syntax again, with the 'w' option. 'w' is a write mode which lets us edit and write new information to the file. Here s the catch that works for us ::: any existing json with the same …

  5. How can I parse (read) and use JSON in Python? - Stack Overflow

    My Python program receives JSON data, and I need to get bits of information out of it. How can I parse the data and use the result? I think I need to use json.loads for this task, but I can't under...

  6. python - How do I write JSON data to a file? - Stack Overflow

    How do I write JSON data stored in the dictionary data to a file? f = open ('data.json', 'wb') f.write (data) This gives the error: TypeError: must be string or buffer, not dict

  7. Opening a JSON file in python - Stack Overflow

    May 14, 2016 · This is the first time I try to use a JSON file in Python and although I have read a lot of stuff regarding this matter, I am still very confused. I want to read a file named jason.json line by line, …

  8. How to read a json file and return as dictionary in Python

    Jan 5, 2017 · How to read a json file and return as dictionary in Python Asked 8 years, 11 months ago Modified 5 years ago Viewed 40k times

  9. Reading JSON file with Python 3 - Stack Overflow

    39 I'm using Python 3.5.2 on Windows 10 x64. The JSON file I'm reading is this which is a JSON array containing 2 more arrays. I'm trying to parse this JSON file using the json module. As described in …

  10. Read json file from python - Stack Overflow

    Oct 3, 2014 · I am trying to read a json file from python script using the json module. After some googling I found the following code: with open (json_folder+json) as json_file: json_data = json.loads (