I am new using a json file and i wanna put the file into a text variable in javascript to run a function not in a object....
I have been trying something like this.. but nothing...
var jqxhr = $.getJSON( "json/test.json", function() {
console.log( "success" );
})
alert (getDepth(jqxhr));