I am currently trying to parse a local JSON file on Webkit browsers and I am running into a couple issues.
var request = new XMLHttpRequest();
request.open('Get', 'file:///abc/test.json', false);
var test = JSON.parse(request.responseText);
This however doesn't seem to work in Webkit Browsers (I am only testing on Webkit Browsers such as Chromium on ubuntu).
Could someone please help me point out what I might be doing wrong? Thank you in advance!
Edit: I noticed a bunch of responses indicate it isn't possible to use Ajax. Is there anything else I can use such as JQuery or do this?