title: Iterate over bean in Javascript?
body: <p>We normally do something like this JSTL on the jsp....but I now need to set data in the javascript using JSON.  How would I do something like this in Javascript/JSON</p>
  
  <p>Basically loop over a bean and pull out its parameters:</p>
  
  <pre><code>  &lt;c:forEach var="field" items="${detFields}"&gt;
        ${field.groupName}
            ${field.breakoutAllowed}           
   &lt;/c:forEach&gt;
  </code></pre>
  
  <p>so I can put it inside something like this:</p>
  
  <pre><code>    "data": [{
          "value": "${field.groupName}"
  
      }, {
  
          "value": "${field.breakoutAllowed}"  
      }]
  </code></pre>