i need help with json file and other array. I wish to push objects in my array, and then alert value of some object...
var jsonOriginal = new Array('http://192.168.1.101:8080/mbx/labResults.json');
var jsonDisplay = new Array();
function grid () {
$.getJSON(jsonOriginal, function(data) {
jsonLength = data.length;
jsonDisplay.push(data);
});
alert(jsonDisplay[0].someone.name);
example of json:
[{"someone":{"name":"Ljubica Lulik","number":"523011571"}, {"someone":{"name":"Lubi Lulik","number":"523012341"}]