Hi.
When I add the json string/array directly in the code it works fine but I can't seems to load it from from a server:


var jsontext = '[{"Id":176,"Name":"370x265-vta1.jpg","Description":"testimage1","ThumbnailUrl":"http://server.com/Image/Thumbnail/176","ImageUrl":"http://server.com/Image/Cropped/176","UploadDate":"\/Date(1354703312773)\/"},{"Id":177,"Name":"exterior-gallery.jpg","Description":"testimage2","ThumbnailUrl":"http://server.com/Image/Thumbnail/177","ImageUrl":"http://server.com/Image/Cropped/177","UploadDate":"\/Date(1354703362023)\/"},{"Id":178,"Name":"gold-car.jpg","Description":"testimage3","ThumbnailUrl":"http://server.com/Image/Thumbnail/178","ImageUrl":"http://server.com/Image/Cropped/178","UploadDate":"\/Date(1354703397523)\/"}]';

var contact = JSON.parse(jsontext);

for (var i=0;i<contact.length;i++) {
document.write(contact[i].Name + " ");
document.write(contact[i].NumberOfImages + "<br/>");
document.write('<img src="'+contact[i].ThumbnailUrl+'" border="0"/><br/>');

document.write(contact[i].Id + "<br/>");
}


The above works, but how can I load the array from a server?
All examples I've seen just use a simple string.