json.load loads from a file-like object. You either want to use json.loads:

json.loads(data)

Or just use json.load on the request, which is a file-like object:

json.load(request)

Also, if you use the requests library, you can just do:

import requests

json = requests.get(url).json()
Answer from Blender on Stack Overflow
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_json.asp
Python JSON
Python has a built-in package called json, which can be used to work with JSON data. ... If you have a JSON string, you can parse it by using the json.loads() method.
People also ask

How to parse JSON strings in Python
To parse a JSON string in Python, we can use the built-in **`json`** module. This module provides two methods for working with JSON data: - **`json.loads()`** parses a JSON string and returns a Python object. - **`json.dumps()`** takes a Python object and returns a JSON string.
๐ŸŒ
blog.apify.com
blog.apify.com โ€บ how-to-parse-json-with-python
How to parse JSON with Python
How to Read and Parse JSON files in Python
To parse a JSON file in Python, we can use the same json module we used in the previous section. The only difference is that instead of passing a JSON string to json.loads(), we pass the contents of a JSON file.
๐ŸŒ
blog.apify.com
blog.apify.com โ€บ how-to-parse-json-with-python
How to parse JSON with Python
How to parse JSON with Python Pandas
To parse JSON with Python Pandas, we can use the pandas.read_json() function. This function can read JSON data into a pandas DataFrame, which allows for easy manipulation and analysis of the data.
๐ŸŒ
blog.apify.com
blog.apify.com โ€บ how-to-parse-json-with-python
How to parse JSON with Python
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ json-loads-in-python
json.loads() in Python - GeeksforGeeks
Explanation: json.loads(s) parses the JSON string s and converts it into a Python dict.
Published ย  June 16, 2020
๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ library โ€บ json.html
JSON encoder and decoder โ€” Python 3.14.3 documentation
As a result of this, if a dictionary is converted into JSON and then back into a dictionary, the dictionary may not equal the original one. That is, loads(dumps(x)) != x if x has non-string keys.
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ python-json-how-to-convert-a-string-to-json
Python JSON โ€“ How to Convert a String to JSON
November 9, 2021 - #include json library import json ...loyee_string)) #output #<class 'str'> you can turn it into JSON in Python using the json.loads() function....
๐ŸŒ
Note.nkmk.me
note.nkmk.me โ€บ home โ€บ python
Load, Parse, Serialize JSON Files and Strings in Python | note.nkmk.me
August 6, 2023 - It is included in the standard library, so no additional installation is necessary. ... You can use json.loads() to convert JSON-formatted strings into Python objects, such as dictionaries.
๐ŸŒ
Apify
blog.apify.com โ€บ how-to-parse-json-with-python
How to parse JSON with Python
March 11, 2025 - To extract JSON from a string in Python, you can use the json.loads() method.
Find elsewhere
๐ŸŒ
ReqBin
reqbin.com โ€บ code โ€บ python โ€บ g4nr6w3u โ€บ python-parse-json-example
How to parse a JSON with Python?
To work with JSON in Python, you need to import the json module first, then call json.loads() method to parse the JSON string to a Python object.
๐ŸŒ
Zyte
zyte.com โ€บ home โ€บ blog โ€บ json parsing with python [practical guide]
JSON Parsing with Python [Practical Guide]
July 6, 2023 - Here is the CarDecoder class, which will allow us to pass data as JSON string and return the custom python object. ... Then we can use CarDecoder in the json.loads() method as the cls parameter.
๐ŸŒ
Real Python
realpython.com โ€บ python-json
Working With JSON Data in Python โ€“ Real Python
August 20, 2025 - When you converted dog_registry to dog_json using json.dumps(), the integer key 1 became the string "1". When you used json.loads(), there was no way for Python to know that the string key should be an integer again. Thatโ€™s why your dictionary key remained a string after deserialization. Youโ€™ll investigate a similar behavior by doing another conversion roundtrip with other Python data types! To explore how different data types behave in a roundtrip from Python to JSON and back, take a portion of the dog_data dictionary from a former section.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-ways-to-convert-string-to-json-object
Convert String to JSON Object - Python - GeeksforGeeks
Explanation: loads() function stands for "load string," and it parses the JSON string and converts it into a dictionary. This resulting dictionary is assigned to the variable res. ast.literal_eval() function safely evaluates a string containing ...
Published ย  July 11, 2025
๐ŸŒ
PYnative
pynative.com โ€บ home โ€บ python โ€บ json โ€บ python json parsing using json.load() and loads()
Python JSON Parsing using json.load() and loads()
May 14, 2021 - This article demonstrates how to use Pythonโ€™s json.load() and json.loads() methods to read JSON data from file and String. Using the json.load() and json.loads() method, you can turn JSON encoded/formatted data into Python Types this process ...
๐ŸŒ
Medium
medium.com โ€บ @gadallah.hatem โ€บ the-difference-between-json-loads-and-json-load-2dbd30065f26
The difference between json.loads() and json.load() in Python | by Hatem A. Gad | Medium
December 15, 2024 - import json # JSON string json_string = '{"name": "Alice", "age": 30, "is_member": true}' # Convert JSON string to Python dictionary data = json.loads(json_string) print(data) # Output: {'name': 'Alice', 'age': 30, 'is_member': True} ... Purpose: ...
๐ŸŒ
FavTutor
favtutor.com โ€บ blogs โ€บ read-write-and-parse-json-in-python
Read, Write and Parse JSON File in Python
October 14, 2023 - The method reads the contents of the file and converts it into a Python object, which we can then access and manipulate. The json.loads() method is used to parse a JSON string and convert it into a Python object.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ read-json-file-using-python
Read JSON file using Python - GeeksforGeeks
The Deserialization of JSON means the conversion of JSON objects into their respective Python objects. The load()/loads() method is used for it. If we have used JSON data from another program or obtained it as a string format of JSON, then it ...
Published ย  September 15, 2025
๐ŸŒ
Python.org
discuss.python.org โ€บ python help
Convert evaled string to JSON - Python Help - Discussions on Python.org
September 28, 2022 - I am getting a (suppossed to be) JSON string like this : (sJSON) { 'ARN': 'arn:aws:xxx:xxx:secret:xxx', 'Name': 'xxx/local', 'VersionId': 'xxx-xxx-xxx-xxx-xxx', 'SecretString': 'E:\\path\\to\\folder\\xxx.json', 'VersionStages': ['AWSCURRENT'], ...
๐ŸŒ
Programiz
programiz.com โ€บ python-programming โ€บ json
Python JSON: Read, Write, Parse JSON (With Examples)
To work with JSON (string, or file containing JSON object), you can use Python's json module. You need to import the module before you can use it. ... The json module makes it easy to parse JSON strings and files containing JSON object. You can parse a JSON string using json.loads() method.
๐ŸŒ
Spark By {Examples}
sparkbyexamples.com โ€บ home โ€บ python โ€บ python json.loads() method with examples
Python json.loads() Method with Examples - Spark By {Examples}
May 31, 2024 - The json.loads() is a method from the json module that is used to parse a JSON (JavaScript Object Notation) string and convert it into a Python object.