parse local json file

JavaScript
//using JQuery
$.getJSON("test.json", function(json) {
    console.log(json); // this will show the info it in firebug console
});// pure javascript
let object;
let httpRequest = new XMLHttpRequest(); // asynchronous request
httpRequest.open("GET", "local/path/file.json", true);
httpRequest.send();
httpRequest.addEventListener("readystatechange", function() {
    if (this.readyState === this.DONE) {
      	// when the request has completed
        object = JSON.parse(this.response);
    }
});
Source

Also in JavaScript: