Save list of dictionaries to json python

Save list of dictionaries to json python

  • Example How to Save List of Dictionaries to JSON in Python
    import json
    
    with open('outputfile.json', 'w') as file:
       json.dump(list_of_dict, file)