Answers for "save data array into json python"

1

python save list to json

import json
with open('data.json', 'w') as f:
    json.dump(data, f)
Posted by: Guest on January-03-2021
0

how to save string json to json object python

# how to load a string to json
import ast
jsonobj = ast.literal_eval(str(hdf))
Posted by: Guest on May-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language