Note that there are some explanatory texts on larger screens.

plurals
  1. PODisplay JSON object's contents returned from an URL on an html page
    primarykey
    data
    text
    <p>I have JSON object returned from an URL in the format</p> <pre><code>&lt;pre&gt; [{"merchant":"eletspay","accountName":"hello","accountType":"Savings","ifscCode":"5545","email":"mypal.1989@gmail.com","phoneNum":"98654567876","isDefaultAccount":false},{"merchant":"eletspay","accountName":"helloi32irn","accountType":"Savings","ifscCode":"5545","email":"mypal.appa99721989@gmail.com","phoneNum":"98654567876","isDefaultAccount":false}] &lt;/pre&gt; </code></pre> <p>And I want to loop through the JSON object for each index to display all of the contents in an html table where the table is</p> <pre><code>&lt;pre&gt; &lt;table class= "dataTable"&gt; &lt;tr&gt; &lt;td&gt;&lt;input type="radio" name="activate"&gt;&lt;/td&gt; &lt;td&gt;jsonObject[1.value]&lt;/td&gt; &lt;td&gt;jsonObject[1.value]&lt;/td&gt; &lt;td&gt;jsonObject[1.value]&lt;/td&gt; &lt;td&gt;jsonObject[1.value]&lt;/td&gt; &lt;td&gt;jsonObject[1.value]&lt;/td&gt; &lt;td&gt;jsonObject[1.value]&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;input type="radio" name="activate"&lt;/td&gt; &lt;td&gt;jsonObject[2.value]&lt;/td&gt; &lt;td&gt;jsonObject[2.value]&lt;/td&gt; &lt;td&gt;jsonObject[2.value]&lt;/td&gt; &lt;td&gt;jsonObject[2.value]&lt;/td&gt; &lt;td&gt;jsonObject[2.value]&lt;/td&gt; &lt;td&gt;jsonObject[2.value]&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/pre&gt; </code></pre> <p>Where <code>jsonObject[1.value]</code> will be the data at index 1 and <code>jsonObject[2.value]</code> will be the data at index 2 and so on.</p> <p>PS: I'm new to Javascript and hence Jquery, so please ingore/rectify any stupid errors in the html part. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload