About 50 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 …

  2. 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...

  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 …

  4. python - Loading and parsing a JSON file with multiple JSON …

    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, …

  5. python - What is the difference between json.load () and …

    Sep 27, 2016 · In Python, what is the difference between json.load() and json.loads()? I guess that the load () function must be used with a file object (I need thus to use a context manager) …

  6. Python read JSON file and modify - Stack Overflow

    json_content = json.load(jsonfile) # this is now in memory! you can use it outside 'open' Next, we use the 'with open ()' syntax again, with the 'w' option. 'w' is a write mode which lets us edit …

  7. json - How would you save a simple settings/configuration file in ...

    Oct 27, 2024 · I don't care if it's JSON, pickle, YAML, or whatever. All other implementations I have seen are not forward compatible, so if I have a configuration file, add a new key in the …

  8. Reading a JSON file from S3 using Python boto3 - Stack Overflow

    Jan 13, 2018 · I kept following JSON in the S3 bucket test: { 'Details': "Something" } I am using the following code to read this JSON and printing the key Details: s3 = …

  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 …

  10. 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 9 years, 1 month ago Modified 5 years, 2 months ago Viewed 40k times