dimanche 31 juillet 2016

How to Python prettyprint a JSON file

I have a JSON file that is a mess that I want to prettyprint-- what's the easiest way to do this in python? I know PrettyPrint takes an "object", which I think can be a file, but I don't know how to pass a file in-- just using the filename doesn't work.

Aucun commentaire:

Enregistrer un commentaire