SyntaxFix
Write A Post
Hire A Developer
Questions
If you already have existing JSON files which you want to pretty format you could use this:
with open('twitterdata.json', 'r+') as f: data = json.load(f) f.seek(0) json.dump(data, f, indent=4) f.truncate()