Answers for "save data to json file javascript"

2

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

save in json file js

var fs = require('fs');
fs.writeFile("test.txt", jsonData, function(err) {
    if (err) {
        console.log(err);
    }
});
Posted by: Guest on June-20-2021

Code answers related to "save data to json file javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language