You can achieve this by using built-in json module

import json

arrayJson = json.dumps([{"email": item} for item in pyList])
Answer from ë.. on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › python › convert-python-list-to-json
Convert Python List to Json - GeeksforGeeks
July 23, 2025 - In this example, a Python list containing a mix of integers and strings (list_1) is converted to a JSON-formatted string (json_str) using json.dumps().
Discussions

json - How to convert a list of numbers to jsonarray in Python - Stack Overflow
``` >>> import json >>> row = ... type(row_json) >>> ``` 2019-02-22T12:57:52.04Z+00:00 ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... 0 How to convert data fetched from a database using python into a JSON ... More on stackoverflow.com
🌐 stackoverflow.com
Convert JSON array to Python list - Stack Overflow
That is my JSON array, but I would want to convert all the values in the 'fruits' string to a Python list. More on stackoverflow.com
🌐 stackoverflow.com
python - Convert a list to json objects - Stack Overflow
If I want multiple titles (e.g., "title", "convert", "json", ...), instead of title1, ttitle2, ... incumnting. 2016-06-06T16:28:41.76Z+00:00 ... As @alecxe pointed out, you need to divide the array of lists you got from the file into groups of values with 7 or fewer elements. You can then take a list of any 7 titles you want and use them as keys to create the dictionary of each json object in the final list. try: from itertools import izip except ImportError: # Python ... More on stackoverflow.com
🌐 stackoverflow.com
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-list-to-json
Python List to JSON
To convert a Python List to JSON, use json.dumps() function. dumps() function takes list as argument and returns a JSON String. In this tutorial, we have examples to demonstrate different scenarios where we convert a given list to JSON string.
🌐
W3Schools
w3schools.com › python › gloss_python_convert_into_JSON.asp
Python Convert From Python to JSON
Remove List Duplicates Reverse ... ... If you have a Python object, you can convert it into a JSON string by using the json.dumps() method....
🌐
Spark By {Examples}
sparkbyexamples.com › home › python › convert python list to json examples
Convert Python List to JSON Examples - Spark By {Examples}
March 27, 2024 - How to convert a list to JSON in Python? You can use the json.dumps() method to convert a Python list to a JSON string. This function takes a list as an argument and returns the JSON value.
Find elsewhere
🌐
Quora
quora.com › How-do-I-convert-a-list-to-JSON-in-Python
How to convert a list to JSON in Python - Quora
json.dump(py_list, f, ensure_ascii=False, indent=2) Options: indent formats output, ensure_ascii=False preserves non-ASCII characters. ... Converting a Python list to JSON is straightforward using the built-in json module.
🌐
W3Schools
w3schools.com › python › python_json.asp
Python JSON
You can convert Python objects of the following types, into JSON strings:
🌐
AskPython
askpython.com › home › convert a list to json string in python [easy step-by-step]
Convert a List to JSON String in Python [Easy Step-By-Step] - AskPython
May 30, 2023 - Hence, we do not have to install it manually on our local system. We can directly import in by using the import statement. ... The json module has a function dumps() that is used to convert a list to JSON in Python.
🌐
Tech With Tech
techwithtech.com › home › converting list to json array in python: how to?
Converting List to JSON Array in Python: How To? - Tech With Tech
October 27, 2022 - The “name” field is a string “Alex”, the “age” field is a number 31, and the “children” field is a JSON array with two JSON objects. Python has its own module for working with JSON Objects. You can import it like this: ... After that you’ll get methods for converting a string or file into a Python object and the other way around. Python lists are the most similar structure to JSON arrays, so they are converted directly to JSON arrays by using the dumps method:
🌐
Appdividend
appdividend.com › python-list-to-json
How to Convert List to JSON in Python (Variables and Files)
November 24, 2025 - The most efficient and straightforward way to convert a Python List is by using the json.dumps() method.
🌐
DataCamp
datacamp.com › community › tutorials › json-data-python
Python JSON Data: A Guide With Examples | DataCamp
December 3, 2024 - While Python is capable of storing intricate data structures such as sets and dictionaries, JSON is limited to handling strings, numbers, booleans, arrays, and objects. Let’s look at some of the differences: To convert a Python list to JSON format, you can use the json.dumps() method from ...
🌐
Medium
medium.com › @wepypixel › how-to-convert-a-list-to-json-python-simple-technique-pypixel-c329f6de5d7a
How to Convert a List to JSON Python? Simple Technique -PyPixel | by Stilest | Medium
August 26, 2023 - To convert a Python list to a JSON, we can make use of Python’s built-in json module, we do not need to explicitly install it. This module provides methods to serialize Python objects into JSON format and deserialize JSON data back into Python objects. Here's a step-by-step guide: First, we will be importing Python’s in-built json module into your Python script by adding this line of code:
🌐
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"]]

🌐
Finxter
blog.finxter.com › 5-best-ways-to-convert-a-python-list-to-json
5 Best Ways to Convert a Python List to JSON – Be on the Right Side of Change
February 20, 2024 - The json.JSONEncoder class provides a customizable way to convert Python lists (and other objects) to JSON.
Top answer
1 of 4
3

One by one access each element from list and put it into some dict and at the end append to a list:

import json

# some example lists
em_link = ['a', 'b', 'c']
em_title = ['x', 'y', 'z']
em_desc = [1,2,3]

arr = []
for i,j,k in zip(em_link, em_title, em_desc):
    d = {}
    d.update({"link": i})
    d.update({"title": j})
    d.update({"desc": k})
    arr.append(d)

print(json.dumps(arr))

Output:

[{"link": "a", "title": "x", "desc": 1}, {"link": "b", "title": "y", "desc": 2}, {"link": "c", "title": "z", "desc": 3}]
2 of 4
3

This returns an array of JSON objects based off of Chandella07's answer.

from bs4 import BeautifulSoup
import pandas as pd
import requests
import json

r = requests.get("https://www.emojimeanings.net/list-smileys-people-whatsapp")

soup = BeautifulSoup(r.text, "lxml")

emojiLinkList = []
emojiTitleList = []
emojiDescriptionList = []
jsonData = []

for tableRow in soup.find_all("tr", attrs={"class": "ugc_emoji_tr"}):
    for img in tableRow.findChildren("img"):
        emojiLinkList.append(img['src'])

for tableData in soup.find_all("td"):
    for boldTag in tableData.findChildren("b"):
        emojiTitleList.append(boldTag.text)

for tableRow in soup.find_all("tr", attrs={"class": "ugc_emoji_tr"}):
    for tabledata in tableRow.findChildren("td"):
        if tabledata.has_attr("id"):
            k = tabledata.text.strip().split('\n')[-1]
            l = k.lstrip()
            emojiDescriptionList.append(l)

for link, title, desc in zip(emojiLinkList, emojiTitleList, emojiDescriptionList):
    dict = {"link": link, "title": title, "desc": desc}
    jsonData.append(dict)

print(json.dumps(jsonData, indent=2))

Data Example:

{
    "link": "https://www.emojimeanings.net/img/emojis/purse_1f45b.png",
    "title": "Wallet",
    "desc": "After the shopping trip, the money has run out or the wallet was forgotten at home. The accessory keeps loose money but also credit cards or make-up. Can refer to shopping or money and stand for femininity and everything girlish."
  },