I am calling data from an API like this:
$curl = curl_init(); //adding fields to the curl object to enter the site curl_setopt($curl, CURLOPT_URL, $my_url); curl
Use json_decode(). If you want to view the php object so you can better understand how to use it, try
json_decode()
echo ''; echo print_r(json_decode($jsonStr, true)); echo '';
'; echo print_r(json_decode($jsonStr, true)); echo '