About 51 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 - What is the difference between json.load () and json.loads ...

    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) while the loads …

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

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

    data = json.load(json_data) Yields: ValueError: Extra data: line 2 column 1 - line 225116 column 1 (char 232 - 160128774) I looked at 18.2. json — JSON encoder and decoder in the Python documentation, …

  5. How can I handle reading a .json file in it that has comments with …

    Sep 20, 2017 · But this crashes at the json.load (f) command because the file f has comments in it. I thought this would be a common problem but I can't find much online RE how to handle it in python.

  6. Load part of a json in python - Stack Overflow

    JSON objects, like Python dictionaries, have no order. You can also not control how much of an object is loaded, not with the standard library json module at any rate.

  7. How to get JSON from webpage into Python script

    Unfortunately, that doesn't work in Python 3. json.load is just a wrapper around json.loads that calls read () for a file-like object. json.loads requires a string object and the output of urllib.urlopen (url).read () …

  8. JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    In my case it occured because i read the data of the file using file.read() and then tried to parse it using json.load(file).I fixed the problem by replacing json.load(file) with json.loads(data)

  9. Python: read in an Array of json objects using json.loads()

    Dec 1, 2015 · Python: read in an Array of json objects using json.loads () Asked 10 years, 2 months ago Modified 10 years, 2 months ago Viewed 53k times

  10. How to convert JSON data into a Python object? - Stack Overflow

    May 10, 2016 · I want to convert JSON data into a Python object. I receive JSON data objects from the Facebook API, which I want to store in my database. My current View in Django (Python) …