I'm developing a simple static website with html, css and javascript hosted in Dropbox, using javascript with the JQuery framework and trying to read a JSON file.
var jqxhr = $.getJSON( "example.json", function() {
console.log( "success" );
});
I've researched and realized that this is an AJAX call to a local resource through an HTTP request, and that it would only be possible if the site were hosted on a server. Is there any other way to do this? Why does this happen?