Pull data from a json file with .getJSON
$.getJSON( "/data.json" )
.done(function( json ) {
console.log( "JSON Data: " + json.data[ 3 ].fact );
})
.fail(function( jqxhr, textStatus, error ) {
var err = textStatus + ", " + error;
console.log( "Request Failed: " + err );
});