I want to read a JSON file that in my local machinge using Javescript, and parse it to a Javascript object such as this code:
var parsed = JSON.parse(JSON_file);
Is it possible to read the file from the disk? Or there is other methods to do that. Thanks.
JSONobject? In modern browsers there'sFileReader Apiavailable, in older IE's you can use someactiveXto read a file (if this is not a web page), just notice, thatJSONis supported starting from IE8 on...