---
title: "how to iterating over json data"  
description: "how to iterating over json data"  
author: "Anonymous User"  
published: 2013-06-20  
updated: 2013-06-20  
canonical: https://www.mindstick.com/forum/1242/how-to-iterating-over-json-data  
category: "json"  
tags: ["json"]  
reading_time: 1 minute  

---

# how to iterating over json data

Hi All,\
following is my [json data](https://www.mindstick.com/forum/782/how-to-send-request-amp-amp-response-from-json-data-using-asp-dot-net) in a div,\

```
[{"Identifier":"1","Label":"10 Day","Categories":"Standard","UpdatedBy":"Lno","UpdatedAt":"01-02-2013","RefId":"0","ComType":"1","Cs":["944"],"AM":"Error Message","Message":"asdfasdf","Combiner":[{"uniqueID":"1","type":"7","rule":""}]}]I am accessing it thorugh a js object var myArrayVar=JSON.parse(document.getElementById("populateDT").innerHTML);
```

\
I want to iterate over this js object following is the code i [am trying](https://answers.mindstick.com/qa/36834/which-two-programming-languages-should-i-master-in-if-i-am-trying-to-get-into-google-or-facebook) but it doesnot [access](https://www.mindstick.com/articles/12994/how-foreigners-can-access-blocked-websites-in-china) my key, [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) [fields](https://www.mindstick.com/forum/159126/sql-query-for-all-tables-and-fields-in-an-oracle-db)\

```
for( var  i=0; i<=myArrayVar.length;i++){            for(var j=0; j<=myArrayVar.Combiner.length; j++){                var sessionUniqueId= myArrayVar.Combiner[j].uniqueID;                alert(sessionUniqueId);                var sessionType=myArrayVar.Combiner[j].type;                alert(sessionType);                var sessionRule=myArrayVar.Combiner[j].rule;                alert(sessionRule);            }        }
```

can [anyone](https://www.mindstick.com/articles/23207/how-to-find-the-best-fit-job-for-anyone) suggests whats going [wrong](https://answers.mindstick.com/qa/48468/who-wrote-the-the-wrong-enemy-america-in-afghanistan-2001-2014-and-when)\

## Replies

### Reply by AVADHESH PATEL

Hi,\
Try using "<" instead of "<=" in the for loops, and "myArrayVar[i].Combiner" instead of "myArrayVar.Combiner".


---

Original Source: https://www.mindstick.com/forum/1242/how-to-iterating-over-json-data

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
