About 16,800 results
Open links in new tab
  1. How can I parse (read) and use JSON in Python? - Stack Overflow

    JSON lookalikes. Before attempting to parse JSON data, it is important to ensure that the data actually is JSON. Check the JSON format specification to verify what is expected. Key points: …

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

    The top answers show seemingly two different ways to parse a json response into a Python object but they are essentially the same. response.json() differs in two places: it uses simplejson …

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

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

    It evals to a dictionary tho, which can easily be loaded/dumped as JSON (and of course you might need a custom json encoder function if your dictionary has none json values). – kakhkAtion …

  6. python - Using Argparse and Json together - Stack Overflow

    Feb 5, 2015 · Using argparse in python to parse an entire JSON. 1. Using argparse to open a json file? 3.

  7. Getting values from JSON using Python - Stack Overflow

    Note that json.loads converts json arrays into lists. If you need to get a value of a dictionary in a list, then you will need to index the list for the dictionary first to get the value. This is an easy …

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

    Jun 17, 2011 · It does not work. json.loads gives 'TypeError: the JSON object must be str, not 'HTTPResponse'' and json.load gives 'TypeError: the JSON object must be str, not 'bytes'' – …

  9. Converting "true" (JSON) to Python equivalent "True"

    Python's native json library can be used to parse (read) the Json in a string and convert it into a python object, and you already have it installed... # Import the library import json # Define a …

  10. JSON to Protobuf in Python - Stack Overflow

    Feb 21, 2020 · I am trying to parse a message to JSON but I need a test protobuf stream with relevant data for us to parse so basically, JSON to message piped out of python, then piped …

Refresh