Answers for "javascript json file"

1

javascript read json file

const fs = require('fs');

let rawdata = fs.readFileSync('student.json');
let student = JSON.parse(rawdata);
console.log(student);
Posted by: Guest on February-25-2021
1

read json file javascript

fetch("file.json")
    .then(Response => Response.json())
    .then(data => {
        console.log(data);
  		// or whatever you wanna do with the data
    });
Posted by: Guest on October-03-2021
0

html working with JSON data

superHeroes['members'][1]['powers'][2]
Posted by: Guest on December-02-2020

Code answers related to "javascript json file"

Code answers related to "Javascript"

Browse Popular Code Answers by Language