title: Create a list dynamically using json array as an input
body: <p>I want to know how to produce the HTML list dynamically using the json array of objects as input.</p>
  
  <pre class="lang-js prettyprint-override"><code>{title: "Title1", param: "param1"},
  {title: "Title2", param: "param2"},
  {title: "Title3", param: "param3"}
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>&lt;ul data-role="listview" data-inset="true"&gt;
  &lt;li&gt;
      &lt;a href="#mypage" onclick="myfunc(param1);"&gt;Title1&lt;/a&gt;
    &lt;/li&gt;
  &lt;li&gt;
      &lt;a href="#mypage" onclick="myfunc(param2);"&gt;Title2&lt;/a&gt;
    &lt;/li&gt;
  &lt;li&gt;
      &lt;a href="#mypage" onclick="myfunc(param3);"&gt;Title3&lt;/a&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>