About 168,000 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 - What's the best way to parse a JSON response from the …

    Mar 24, 2020 · 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 …

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

  4. Getting values from JSON using Python - Stack Overflow

    If you want to get values from a JSON document, then open the file first and pass the file handle to json.load() instead. Depending on the document structure, json.load() would return …

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

  6. Convert JSON string to dict using Python - Stack Overflow

    I'm a little bit confused with JSON in Python. To me, it seems like a dictionary, and for that reason I'm trying to do that: { "glossary": { "title": "example

  7. python - Convert a bytes array into JSON format - Stack Overflow

    Apr 8, 2022 · I want to parse a bytes string in JSON format to convert it into python objects. This is the source I have: my_bytes_value = b' [ {\'Date\': \'2016-05-21T21:35:40Z\', …

  8. python - Parsing nested JSON data - Stack Overflow

    As mentioned in cpburnz's answer: the problem is the single vs. double quote characters. You need double-quotes, and then a simple call to json.loads will work (your JSON string loads fine …

  9. python - How can I convert JSON to CSV? - Stack Overflow

    Dec 9, 2009 · This script reads n numbers of json files present in a folder and then extract certain data from each file and write in a csv file. The folder contains the python script i.e. …

  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 …

Refresh