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 - How do I write JSON data to a file? - Stack Overflow

    json dump will write the json as string in the file. How can I get a json file that is not in the form of string, but just dictionary-like? Is it possible?

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

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

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

  6. python - How to prettyprint a JSON file? - Stack Overflow

    python3 -m json.tool some.json (as already mentioned in the commentaries to the question, thanks to @Kai Petzke for the python3 suggestion). Actually python is not my favourite tool as far as json …

  7. python - How to make a class JSON serializable - Stack Overflow

    Sep 22, 2010 · The standard Python libraries for encoding Python into JSON, such as the stdlib’s json, simplejson, and demjson, can only handle Python primitives that have a direct JSON equivalent (e.g. …

  8. Convert string to JSON in Python? - Stack Overflow

    May 16, 2013 · What do you mean "Convert string to JSON"? JSON is a string format. You want to convert JSON to the appropriate native Python objects (in this case a dict mapping one string to …

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

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

    I looked at 18.2. json — JSON encoder and decoder in the Python documentation, but it's pretty discouraging to read through this horrible-looking documentation.