I'm having some trouble accessing a json string - Demo Link
//PHP CODE
$json = curl_exec($ch);
$json = json_decode($json, true);
var_dump($json);
// RESULTS
@{"error":"Bank account validation failed.","error_type":null,"code":400}
int(1)
Any help would be highly appreciated!
curl_exec(): php.net/curl_execCURLOPT_RETURNTRANSFER- curl_exec just returns true or false unless that's set to true, which would end up as a 1 afterjson_decode