added json functions to pprint