About 405,000 results
Open links in new tab
  1. 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 …

  2. python - What is the difference between json.load () and …

    Sep 27, 2016 · In Python, what is the difference between json.load() and json.loads()? I guess that the load () function must be used with a file object (I need thus to use a context manager) …

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

  4. python - Loading and parsing a JSON file with multiple JSON …

    data = json.load(json_data) Yields: ValueError: Extra data: line 2 column 1 - line 225116 column 1 (char 232 - 160128774) I looked at 18.2. json — JSON encoder and decoder in the Python …

  5. JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    In my case it occured because i read the data of the file using file.read() and then tried to parse it using json.load(file).I fixed the problem by replacing json.load(file) with json.loads(data)

  6. Reading a JSON file from S3 using Python boto3 - Stack Overflow

    Jan 13, 2018 · Further Improvement Let's call the above code snippet as read_s3.py. It is not good idea to hard code the AWS Id & Secret Keys directly. For best practices, you can …

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

  8. python - What is the difference between json.dumps and json.load ...

    Oct 2, 2015 · What is the difference between json.dumps and json.load? From my understanding, one loads JSON into a dictionary and another loads into objects.

  9. python - Why do I get "'str' object has no attribute 'read'" when ...

    Official documentation json.load - Deserialize fp (a .read ()-supporting text file or binary file containing a JSON document) to a Python object using this conversion table. json.loads - …

  10. python - How do I make Json's parse_float=decimal.Decimal …

    How do I make Json's parse_float=decimal.Decimal round the number to two decimal points? Asked 16 years ago Modified 10 months ago Viewed 14k times