Like charlietfl already said, a normal way of handling data between the device and a server is ajax which is provided by jQuery. An Ajax function for retrieving data from a server would look like this:
function getDataFromServer() {
var term=null;
$.ajax({
url:'http://yourUrlGoesHere.tld',
type:'GET',
data:term,
dataType:'json', //defines what you get back from the server
error:function(jqXHR,text_status,strError){},
success:function(data) //{
for (i=0; i < data.items.length; i++){
//This is the part, where you can do what you want with anything inside the array.
console.log(data); //i would simply do this to first see the result inside the console
}
}
})
}
So, belonging to your comment, you should save your array inside sth. for example called myArray. Now shorturl would be accessable via myArray.shorturl.
Try something like console.log(myArray.shorturl);
array[1][1]this way with js.array['file']['name']would give you that. if you could post js array, that would be nice to answer.