json version python code example
Example 1: python json.dumps pretty print
json.dumps(x, indent=4)
Example 2: python json dump
import json
with open("data_file.json", "w") as write_file:
json.dump(data, write_file)
json.dumps(x, indent=4)
import json
with open("data_file.json", "w") as write_file:
json.dump(data, write_file)