Answers for "using json files in javascript"

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language