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

How can I parse (read) and use JSON in Python? - Stack Overflow
Beware that .load is for files; .loads is for strings. See also: Reading JSON from a file. Occasionally, a JSON document is intended to represent tabular data. If you have something like this and are trying to use it with Pandas, see Python - How to convert JSON File to Dataframe. More on stackoverflow.com
🌐 stackoverflow.com
Convert JSON string to dict using Python - Stack Overflow
The reputation requirement helps protect this question from spam and non-answer activity. ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... I’m Jody, the Chief Product and Technology Officer at Stack Overflow. Let’s... Release notes and bug fixes for beta.stackoverflow.com · 444 How can I parse (read) and use JSON in Python? 2 How to convert list of string ... More on stackoverflow.com
🌐 stackoverflow.com
Convert evaled string to JSON
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'], 'CreatedDate': datetime.datetime(2022, 9, 28, 8, ... More on discuss.python.org
🌐 discuss.python.org
0
0
September 28, 2022
Parsing a string representing json to json, but some string values contain double quotes
unless reddit is eating a backslash that i'm missing json = """ { "key" : "This is a \\"test\\"" } """ then if you're unfortunate to have no backslashes, then it's invalid json and a json parser won't be able to read it, you'll need to fix the data first before parsing it you might be able to make some educated guesses based on the expectations of the data itself (like everything between " : " and " } is a string and you can replace all quotes " with backslashed quotes \") - first sanitize it and then let a json parser do it's normal job on it but otherwise there's no way to generically fix this for all possible inputs More on reddit.com
🌐 r/learnpython
22
1
December 1, 2023
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   January 13, 2026
🌐
Python
docs.python.org › 3 › library › json.html
JSON encoder and decoder — Python 3.14.3 documentation
3 weeks ago - 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.
Find elsewhere
🌐
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.
🌐
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]
A Practical Guide to JSON Parsing with Python
July 6, 2023 - After loading JSON data into Python, you can access specific data elements using the keys provided in the JSON structure. In JSON, data is typically stored in either an array or an object. To access data within a JSON array, you can use array indexing, while to access data within an object, you can use key-value pairs. ... 1import json 2json_string ='{"numbers": [1, 2, 3], "car": {"model": "Model X", "year": 2022}}' 3json_data = json.loads(json_string) 4# Accessing JSON array elements using array indexing 5print(json_data['numbers'][0]) # Output: 1 6# Accessing JSON elements using keys 7print(
🌐
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'], ...
🌐
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.
🌐
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.