Indeed...
Here is a quick PHP function to transform this javascript declaration into proper JSON
returns null if something is wrong, or a PHP array containing datas from the "API"
function fetchEndpoint($endpointUrl)
{
$content = file_get_contents($endpointUrl);
if($content!==null && is_string($content))
{
$equalPos = strpos($content, '=');
if($equalPos!==false)
$content = trim(print_r(substr($content, $equalPos+1), true), ' ;');
$JSON = json_decode($content,1);
return $JSON;
}
return null;
}