I wrote this code snippet:
var json = result;
AJS.log("JSON Data Print")
AJS.log(json)
var treeData = [];
json_arr.push(json);
/*for(var x in json){
json_arr.push(json[x]);
}*/
AJS.log("Copying JSON Data into an array")
AJS.log(treeData)
Is there a way to make the treeData
variable accessible in another JavaScript file?