#return desired fields print(json.dumps(profile, indent=4)) code example
Example: python json dump
import json
with open("data_file.json", "w") as write_file:
json.dump(data, write_file)
import json
with open("data_file.json", "w") as write_file:
json.dump(data, write_file)