Filling json file in a specific html table columns depended on objects value : <p>How to fill a json file in html table where an object value of the file must be filled in a specific column?
i.e: I have the following json file:</p>

<pre><code>[{"id":1,"num":"5","day":1},
{"id":1,"num":"5","day":4},
{"id":2,"num":"6","day":5},
{"id":3,"num":"8","day":4},
{"id":3,"num":"8","day":7},
....
]
</code></pre>

<p>then I want to fill it in html table like that:</p>

<h2>id|day1|day2|day3|day4|day5|day6|day7|</h2>

<h2>1|5|0|0|5|0|0|0|0|</h2>

<h2>2|0|0|0|0|6|0|0|0|</h2>

<h2>3|0|0|0|8|0|0|0|8|</h2>

<p>...</p>

<p>TIA</p>
