Arber X. answered 05/10/19
Tutor
New to Wyzant
Software Engineer at Bloomberg LP
Hi,
pprint takes a python object. To get a python object from a json file, you can read the contents of the file and pass the contents to json.loads(). Then pass the result to pprint.
Goodluck!