How to map the array and store combined category?
<p>i am getting the JSON response like this :</p>

<pre><code>[
 {"IndexID":1,"IndexName":"Consumer Confidence Index(CCI)","IndexValue":34.79,"Month":10,"PercentageChanged":0,"Position":0,"Year":2011},
 {"IndexID":1,"IndexName":"Consumer Confidence Index(CCI)","IndexValue":34.25,"Month":11,"PercentageChanged":0,"Position":0,"Year":2011},
 {"IndexID":1,"IndexName":"Consumer Confidence Index(CCI)","IndexValue":33.58,"Month":12,"PercentageChanged":0,"Position":0,"Year":2011},
 {"IndexID":1,"IndexName":"Consumer Confidence Index(CCI)","IndexValue":32.64,"Month":1,"PercentageChanged":0,"Position":0,"Year":2012},
 {"IndexID":1,"IndexName":"Consumer Confidence Index(CCI)","IndexValue":36.92,"Month":2,"PercentageChanged":0,"Position":0,"Year":2012},

 {"IndexID":2,"IndexName":"Current Sentiment Index","IndexValue":47.42,"Month":10,"PercentageChanged":0,"Position":0,"Year":2011},
 {"IndexID":2,"IndexName":"Current Sentiment Index","IndexValue":47.55,"Month":11,"PercentageChanged":0,"Position":0,"Year":2011},
 {"IndexID":2,"IndexName":"Current Sentiment Index","IndexValue":47.01,"Month":12,"PercentageChanged":0,"Position":0,"Year":2011},
 {"IndexID":2,"IndexName":"Current Sentiment Index","IndexValue":45.01,"Month":1,"PercentageChanged":0,"Position":0,"Year":2012},
 {"IndexID":2,"IndexName":"Current Sentiment Index","IndexValue":47.32,"Month":2,"PercentageChanged":0,"Position":0,"Year":2012},

 {"IndexID":3,"IndexName":"Future Expectations Sentiment Index","IndexValue":29.63,"Month":10,"PercentageChanged":0,"Position":0,"Year":2011},
 {"IndexID":3,"IndexName":"Future Expectations Sentiment Index","IndexValue":28.81,"Month":11,"PercentageChanged":0,"Position":0,"Year":2011},
 {"IndexID":3,"IndexName":"Future Expectations Sentiment Index","IndexValue":28.09,"Month":12,"PercentageChanged":0,"Position":0,"Year":2011},
 {"IndexID":3,"IndexName":"Future Expectations Sentiment Index","IndexValue":27.59,"Month":1,"PercentageChanged":0,"Position":0,"Year":2012},
 {"IndexID":3,"IndexName":"Future Expectations Sentiment Index","IndexValue":32.67,"Month":2,"PercentageChanged":0,"Position":0,"Year":2012}

 ]
</code></pre>

<p>using each how can i make and store the data's like this:</p>

<pre><code>var allData = [[for index id1],[for index id1],[for index id1]],[[for index id2],for index id2,],[[for indexid3],[for indexid3],[for indexid3]]];
</code></pre>

<p><strong>important : i don't know how may index values are in the data what i am getting it need to create all thorough dynamic.</strong></p>

<p>like so? it will help to draw the chart according to the category with different values.. any easy way to achieve this?</p>
