prettify or clean a JSON with python

prettify or clean a JSON with python

import json

with open('cover_letter_text_parsed_v3.json', 'r') as a_file:
    parsed = json.load(a_file)

with open('cover_letter_text_parsed_v3_clean.json', 'w') as a_file:
    json.dump(a_file, handle, indent=4, sort_keys=True)

SNAPPED!

Comments

Popular posts from this blog

Append to a json file python

Setup Mailhog mail server on Ubuntu