1import json
2import csv
3//string_data is your string in csv format
4json.dumps(list(csv.DictReader(string_data.splitlines(), delimiter=",")))
1import pandas as pd
2df = pd.read_csv (r'Path where the CSV file is saved\File Name.csv')
3df.to_json (r'Path where the new JSON file will be stored\New File Name.json')
4