title: how to parse array list data and json data in jsp
body: <p>I have 2 set of data in my jsp page , one is a <code>array list</code> and another is <code>json data</code> . Now i want to parse both the data set and create my own drop downs .</p>
  
  <p>Here is the sample <code>Array List</code> named <code>json_obj</code> data  </p>
  
  <p><code>["ABC-1","ABC-2","ABC-3","ABC-4","ABC-5","ABC-6"]</code></p>
  
  <p>I tried this piece of code but not working</p>
  
  <pre><code>&lt;select&gt;
    &lt;option value="all_qns"&gt;All&lt;/option&gt;
    &lt;c:forEach var="strategy" items="${json_obj}" varStatus="strategyLoop"&gt;
      &lt;option&gt;&lt;c:out value="${strategyLoop[index]}"/&gt;&lt;/option&gt;
  
    &lt;/c:forEach&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Getting blank options </p>
  
  <pre><code>&lt;select&gt;
   &lt;option value="all_qns"&gt;All&lt;/option&gt;
   &lt;option&gt;&lt;/option&gt;
   &lt;option&gt;&lt;/option&gt;
   &lt;option&gt;&lt;/option&gt;
   &lt;option&gt;&lt;/option&gt;
   &lt;option&gt;&lt;/option&gt;
   &lt;option&gt;&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Also I do have this piece of <code>json data</code> named <code>json_obj_m</code></p>
  
  <pre><code>{"a":"1050","b":"1079","c":"1073","d":"1074"}
  </code></pre>
  
  <p>And I a=have tried this :</p>
  
  <pre><code>&lt;c:forEach items="${json_obj_m}" var="met"&gt;
   &lt;option value="${met.key}"&gt;${met.value}&lt;/option&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>But not working again getting error , that spring does not support <code>key</code> .</p>
  
  <p>Can anybody guide me where I am doing mistake, very new to Java/Spring . Thanks in advance.</p>