About 5,730,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

    data is a Python dictionary. It needs to be encoded as JSON before writing. Use this for maximum compatibility (Python 2 and 3):

  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 …

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

    How do I pretty-print a JSON file in Python?

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

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

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

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

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

    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 …

  9. json - Convert a python dict to a string and back - Stack Overflow

    Dec 28, 2010 · The json module is a good solution here. It has the advantages over pickle that it only produces plain text output, and is cross-platform and cross-version. import json …

  10. python - How to dynamically build a JSON object? - Stack Overflow

    I am new to Python and I am playing with JSON data. I would like to dynamically build a JSON object by adding some key-value to an existing JSON object. I tried the following but I get …