import json my_list = [1, 2, 3, 4, 5] # Convert list to JSON my_list_json = json.dumps(my_list) print(my_list_json)