import json

array = '{"fruits": ["apple", "banana", "orange"]}'
data  = json.loads(array)
print(data['fruits']) 
# the print displays:
# ['apple', 'banana', 'orange']

You had everything you needed. data will be a dict, and data['fruits'] will be a list

Answer from jdi on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-json-to-list
Python Json To List - GeeksforGeeks
July 23, 2025 - In this example, the below code utilizes the `json.loads()` method to convert a JSON-formatted string `[1,2,3,4]` into a Python list named `array`. The `print` statements display the type of the original string, the first element of the resulting list, and the type of the converted list, respectively.
Discussions

python - How do I convert a JSON file into a list of dicts? - Stack Overflow
I want to use this data in a python script but first I need to convert this JSON into a list of dicts and then store that list of dicts to a variable in Python. Also, I am fetching this JSON file using an API call from a PRTG server if that helps at all. More on stackoverflow.com
🌐 stackoverflow.com
July 6, 2017
convert JSON list to dictionary
If I'm not wrong, your JSON file is a list of dictionaries. Which means, you can iterate over the loop to access each dictionary, upon which you can use the relevant method to get the student id. You can connect with me on loljaegar@gmail.com if you wanna screen share and discuss. More on reddit.com
🌐 r/learnpython
8
0
January 13, 2024
How can I convert a JSON array to a Python list? - TestMu AI Community
I have the following JSON array: import json array = '{"fruits": ["apple", "banana", "orange"]}' data = json.loads(array) In this case, I want to convert all the values in the ‘fruits’ string to a Python list. What is the correct way of doing this using Python JSON to list? More on community.testmuai.com
🌐 community.testmuai.com
0
November 26, 2024
How to convert nested list into JSON?
json.dumps can handle nested data structures, too. More on reddit.com
🌐 r/learnpython
6
3
June 23, 2018
🌐
Python Examples
pythonexamples.org › python-json-to-list
Python JSON to List
After loading the JSON string to list, we shall print the value for key "b". import json jsonStr = '[{"a":1, "b":2}, {"c":3, "d":4}]' aList = json.loads(jsonStr) print(aList[0]['b']) ... In this example, we will take a JSON String with Array of Arrays and convert it to Python List of Lists.
🌐
CodeSpeedy
codespeedy.com › home › convert json to list in python
Convert JSON to list in Python - CodeSpeedy
July 9, 2019 - We know that, JSON array is Python’s list. json.dumps(obj)–>Convert Python object to JSON string. json.loads(“json”) –> Convert JSON string into Python object. Hence, by using json.loads() function, one can simply convert JSON data ...
🌐
Pythonspot
pythonspot.com › json-encoding-and-decoding-with-python
python json - Python Tutorial
Convert JSON to Python Object (List) JSON data can be directly mapped to a Python list.
🌐
ItSolutionstuff
itsolutionstuff.com › post › convert-json-array-to-python-list-exampleexample.html
Convert JSON Array to Python List Example - ItSolutionstuff.com
October 30, 2023 - import json # Convert JSON Array to Python List Code myJsonArray = '{"websites": ["itsolutionstuff.com", "hdtuto.com", "nicesnippets.com"]}' data = json.loads(myJsonArray) print(data['websites'])
Find elsewhere
🌐
Reddit
reddit.com › r/learnpython › convert json list to dictionary
r/learnpython on Reddit: convert JSON list to dictionary
January 13, 2024 -

I must first preface this with the fact that I’m extremely new to python. Like just started learning it a little over a week ago.
I have been racking my brain over how to convert a json object I opened and loaded into a dictionary from a list so I can use the get() function nested within a for loop to do a student ID comparison from another json file (key name in that file is just ID).
Below is the command I’m trying to load the json file:
With open(‘file.json’) as x: object=json.load(x)
When I print(type(object)), it shows up as class list.
Here’s a sample of what the json looks like:
[

{

“Name”: “Steel”,

“StudentID”: 3458274

“Tuition”: 24.99

},

{

“Name”: “Joe”,

“StudentID”: 5927592

“Tuition”: 14.99

}

]
HELP! Thank you!

🌐
TestMu AI Community
community.testmuai.com › ask a question
How can I convert a JSON array to a Python list? - TestMu AI Community
November 26, 2024 - I have the following JSON array: import json array = '{"fruits": ["apple", "banana", "orange"]}' data = json.loads(array) In this case, I want to convert all the values in the ‘fruits’ string to a Python list. What is…
🌐
freeCodeCamp
freecodecamp.org › news › how-to-parse-json-in-python-with-examples
How to Parse JSON in Python – A Complete Guide With Examples
October 29, 2025 - The core functions handle the most common operations: json.loads() parses JSON strings into Python objects, and json.load() reads and parses JSON from files. JSON parsing automatically converts between JSON and Python data types. This conversion lets you work with parsed JSON using standard Python syntax. You can navigate nested JSON by chaining dictionary keys and list indices together.
🌐
DataCamp
datacamp.com › community › tutorials › json-data-python
Python JSON Data: A Guide With Examples | DataCamp
December 3, 2024 - With its simple syntax and ability to represent complex data structures, JSON has become an integral part of modern web development, powering everything from APIs to client-side web applications. In this tutorial, I will explore the basics of working with JSON in Python, including serialization, deserialization, reading and writing JSON files, formatting, and more.
🌐
Reddit
reddit.com › r/learnpython › how to convert nested list into json?
r/learnpython on Reddit: How to convert nested list into JSON?
June 23, 2018 -

I know that, list can be converted into JSON by using json.dumps(mylist).

But how can I convert something like this into JSON ?

[["abc", "bcd", "cde"] , ["pgr", "xyz"]]

🌐
GeeksforGeeks
geeksforgeeks.org › python › python-convert-list-of-dictionaries-to-json
Python - Convert list of dictionaries to JSON - GeeksforGeeks
July 5, 2025 - A custom CustomEncoder class subclasses json.JSONEncoder to convert tuples to lists during serialization.
🌐
GeeksforGeeks
geeksforgeeks.org › python › convert-python-list-to-json
Convert Python List to Json - GeeksforGeeks
July 23, 2025 - JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write, and easy for machines to parse and generate. In Python, the json module provides a convenient way to work with JSON data. In this article, we'll explore how to convert Python lists to JSON, along with some examples.
🌐
W3Schools
w3schools.com › python › python_json.asp
Python JSON
... import json # some JSON: x ... · If you have a Python object, you can convert it into a JSON string by using the json.dumps() method....
🌐
ReqBin
reqbin.com › code › python › g4nr6w3u › python-parse-json-example
How to parse a JSON with Python?
The JSON Decoder converts a JSON array to a Python list data type. You can access an element from a JSON array by its index in a Python object.
🌐
Real Python
realpython.com › python-json
Working With JSON Data in Python – Real Python
August 20, 2025 - As you learned before, there are Python data types like tuple that you can convert into JSON, but you’ll end up with an array data type in the JSON file. Once you convert the JSON data back to Python, then an array deserializes into the Python list data type.