Answers for "how to import json file"

8

save json file python

with open('data.txt', 'w') as outfile:
    json.dump(data, outfile)
Posted by: Guest on July-28-2020
0

how to import json data from a local file

var json = require('./data.json'); //(with path)
Posted by: Guest on August-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language