About 15,200,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 - 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. python - How to make a class JSON serializable - Stack Overflow

    Sep 22, 2010 · It's unfortunate that the answers all seem to answer the question "How do I serialize a class?" rather than the action question "How do I make a class serializable?" These answers assume …

  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 - Converting dictionary to JSON - Stack Overflow

    Nov 5, 2014 · The title would be more clearer if it could say - "Converting dictionary to JSON string" because sometimes it's not implied by default.

  6. Encoding nested python object in JSON - Stack Overflow

    ~$ python nestjson.py {"abc": "abc name"} ~$ This can be made cleaner/saner/safer (in particular, just grabbing __dict__ isn't generally a recommended thing to do outside debugging/troubleshooting), but …

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

  8. python - How can I overcome "datetime.datetime not JSON serializable ...

    JSON is commonly used for strings, ints, floats, dates (I'm sure others use currency, temperatures, commonly too). But datetime is part of the standard library and should support de/serialisation.

  9. python - How to get POSTed JSON in Flask? - Stack Overflow

    Dec 29, 2000 · The parsed JSON data if mimetype indicates JSON (application/json, see .is_json). You can tell request.get_json() to skip the content type requirement by passing it the force=True keyword …

  10. 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 dictionary or list, …