Switch output from pprint to json