0
Ashish,
Are you in a position to use jquery in the project ?
If so I have worked out a solution .
Thanks,
Priyan
0
Hi Priyakaran,
Thanks for your valuable reply,
But I don't want to modify data, because I am getting it from another service and, this is huge as 5 MBs.
I need some way to traverse it without modifying JSON
0
Hi Ashish ,
Ideally the JSON return array value should look like below :
var data=[
{"ID":"468040",
"Author": "William von Hagen",
"Title": "Ubuntu Linux Bible"
},
{
"ID":"541115",
"Author": "Lohith G.N.",
"Title": "Windows Phone 7.5 Application Development with F#"
}
];
alert(data.length);
for(var i = 0; i < data.length; i++) {
alert(data[i].Author);
}
Try to get the array value in this format and the looping should work .
I have created a jsfiddle here with the above array format: https://jsfiddle.net/KSPriyaranjan/kjn40jdf/