Loading local JSON file

The Solution to Loading local JSON file is


$.getJSON is asynchronous so you should do:

$.getJSON("test.json", function(json) {
    console.log(json); // this will show the info it in firebug console
});

~ Answered on 2011-09-08 10:30:40


Most Viewed Questions: