json.dumps(get_data(), iterable_as_array=True) 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)