How to show json output in table
<p>I have written following code to call a json and show output.</p>

<p>`

<pre><code>$data = array("user" =&gt; "$username", "pass" =&gt; "$password", "msisdn" =&gt; "$msisdn", "receiver_msisdn" =&gt; "", "trx_type" =&gt; "", "from_date" =&gt; "$startdate", "to_date" =&gt; "$enddate");
$data_string = json_encode($data);

$ch = curl_init('http://ip:port/call_center/account/statementsearch');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($data_string))
);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);

//execute post
$result = curl_exec($ch);

//close connection
curl_close($ch);

echo $result;


    ?&gt;
</code></pre>

<p>Now how can I show the output of the json call in a table?</p>