I get the following output from an API call:
$json = file_get_contents($service_url);
the var_dump of $json gives me:
string(308) " [{"Transaction_ID":2805579},{"Transaction_ID":2777876},{"Transaction_ID":2808406}]"
However, var_dump(json_decode($json)) returns a null.
What am I doing wrong?
$json = file_get_contents($service_url);
the var_dump of $json gives me:
string(308) " [{"Transaction_ID":2805579},{"Transaction_ID":2777876},{"Transaction_ID":2808406}]"
However, var_dump(json_decode($json)) returns a null.
What am I doing wrong?