Answers for "how we have to save the data by using json"

4

save json to file

import json

data = {}

with open('data.txt', 'w') as outfile:
    json.dump(data, outfile)
Posted by: Guest on February-27-2020
-1

how to store data in json file

{
  "name": "Flavio",
  "age": 35
}
Posted by: Guest on March-02-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language