How to read Array of data from json in javascript
How to Iterate Array of data in json Please Check my code
Object {bhanu : Array[3], root: Array[12], hari: Array[7], balu: Array[1],
santha: Array[6]}
I want to Iterate this array How can do this I am using like this
function orgChartResult(result)
{
var userOrgUsers = JSON.parse(result);
for(var name in userOrgUsers) {
console.log(name + "=" + userOrgUsers[name]);
}
console.log(userOrgUsers);
}
but it's give all data .But I want to read firstNode data only Means in
bhanu:Arrat[3]; My array size is 3 then next array size is 12 how can i
read one by one
No comments:
Post a Comment