title: Iterating in JSON using knockout.js
body: <p>I'm using Knockout.js to realize my web app.
  I get data from a database and i use Json to pass data to html page that is rendered through data-bind.</p>
  
  <p>I would like to set the more dynamic possible my app so i would like to iterate through json keys without "hardcoding" the field name</p>
  
  <p>I have the following json: {"id_user":"63","email":"mail@email.it","flag":"1"}
  and iterate using:</p>
  
  <pre><code>        &lt;table data-bind="foreach:page().users"&gt;
              &lt;tr&gt;
                  &lt;td data-bind="text:$data.email"&gt;&lt;/td&gt;
                  &lt;td data-bind="text:$data.flag"&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
  </code></pre>
  
  <p>but i would like to avoid the .email and .flag and using [0] or [1] to reuse this structure for all the models. How can i do it?</p>