About 50 results
Open links in new tab
  1. 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...

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

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

  4. python - What's the best way to parse a JSON response from the …

    Mar 24, 2020 · 430 I'm using the python requests module to send a RESTful GET to a server, for which I get a response in JSON. The JSON response is basically just a list of lists. What's the best way to …

  5. How to parse a JSON in Python? - Stack Overflow

    May 30, 2021 · response.json () already converts (or parses) the response object into JSON's equivalent Python object (Dictionary) so you don't need json.loads (jsonunparsed) call, provided it is a valid …

  6. 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 () …

  7. python - Parse specific key from JSON, and extract if field matches ...

    Parse specific key from JSON, and extract if field matches Asked 9 months ago Modified 8 months ago Viewed 90 times

  8. 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) …

  9. How to parse json file with c-style comments? - Stack Overflow

    Apr 30, 2015 · 7 I have not personally used it, but the jsoncomment python package supports parsing a JSON file with comments. You use it in place of the JSON parser as follows:

  10. HTTP requests and JSON parsing in Python - Stack Overflow

    Jun 17, 2011 · The requests Python module takes care of both retrieving JSON data and decoding it, due to its builtin JSON decoder. Here is an example taken from the module's documentation: