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
April 18, 2026 - 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 arr.
🌐
Python Examples
pythonexamples.org › python-json-to-list
Python JSON to List
Python JSON to List - To convert a JSON String to Python List, use json.loads() function. loads() function takes JSON Array string as argument and returns a Python List. In this tutorial, we have examples to load json array string to python list.
🌐
CodeSpeedy
codespeedy.com › home › convert json to list in python
Convert JSON to list in Python - CodeSpeedy
July 9, 2019 - Initially, we declared a JSON array, ‘array’ which is a string. json.loads(array) converts JSON array to Python object i.e. list (here) and the value is stored in data variable. Then by using the print statement, we printed out the Python list.
🌐
Stack Overflow
stackoverflow.com › questions › 70845743 › python-string-to-list-in-string-and-json
python string to list (in string and json) - Stack Overflow
There is a way to parse the string directly, but since the types of incoming data are various, I was looking for a function that can be converted directly, but I couldn't find it. How can I do that? ... You can do it using json.loads() is leading 42 is just a typo. ... Does this answer your question ? stackoverflow.com/questions/7771011/…. ... Since that data is data received through websocket, it is a number indicating the type of data. ... import json text = '''42["pause",{"all":false,"media_only":false,"media_exclude":false}]''' text = text[text.find('['):] result = json.loads(text) print(result)
🌐
Plain English
python.plainenglish.io › how-to-quickly-convert-a-json-into-a-list-in-python-66f0b1eb6498
How to Quickly Convert a JSON into a List in Python | by Fatos Morina | Python in Plain English
February 24, 2022 - How to Quickly Convert a JSON into a List in Python A guide on how to convert a JSON into a List in Python. If your project is in some ways connected to a third-party API, then you are probably going …
Find elsewhere
🌐
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'])
🌐
TestMu AI Community
community.testmuai.com › ask a question
How can I convert a JSON array to a Python list? - Ask a Question - TestMu AI (formerly LambdaTest) Community
January 9, 2025 - 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…
🌐
IONOS
ionos.com › digital guide › websites › web development › converting python strings to lists
How to convert a Python string to a list - IONOS
December 12, 2024 - You can use the re.findall() function to convert Python strings into lists by locating all oc­cur­rences of a regular ex­pres­sion pattern in a string and re­triev­ing them as a list.
🌐
Pythonspot
pythonspot.com › json-encoding-and-decoding-with-python
Python Json — Tutorial with Examples | Pythonspot
January 1, 2026 - Learn Python JSON encoding and decoding. Use json.dumps() and json.loads() with examples.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-convert-a-string-representation-of-list-into-list
Python - Convert a String Representation of a List into a List - GeeksforGeeks
If the string is in JSON format (which looks like a Python list), we can use json.loads(). ... import json # Use json.loads() to parse #the string and convert it into a Python list s = '["Geeks", "for", "Geeks"]' a = json.loads(s) print(a)
Published: July 11, 2025
🌐
GeeksforGeeks
geeksforgeeks.org › python › convert-python-list-to-json
Convert Python List to Json - GeeksforGeeks
July 23, 2025 - Here, we are converting Python list of lists to json. The 'json.JSONEncoder' class is subclassed, which is overriding the default method. It will convert the list of lists 'data' during the process of JSON encoding, that results in a formatted JSON string with indents for improved readability.
🌐
DigitalOcean
digitalocean.com › community › tutorials › python-convert-string-to-list
How To Convert a String to a List in Python | DigitalOcean
Convert strings to lists in Python using split(), list(), json.loads(), and more. Complete guide with examples for various string formats and use cases.