Skip to content Skip to sidebar Skip to footer

Consuming Json Data In Php Table

I am getting a Json array by making REST call. Here is the code.

Solution 1:

Remove json_decode() as you already receive proper JSON stdClass Object, i.e. just make it:

......
$unit_response = call($url, $oauth2_token_response->access_token, 'GET');
$jd = $unit_response;
$floors = array();
foreach ($jd->records AS $key => $obj) {
......

Post a Comment for "Consuming Json Data In Php Table"