I am trying to parse this json data from the url but i get NULL how do i fix this issue.
$source = file_get_contents('http://partners.socialvi.be/e414f702cf3db89a2fe58066bbab369d65b6a058/activities/available.json');
$json = json_decode($source);
var_dump($json);
That’s because the API returns the data in JSONP format, not pure JSON. Notice the surrounding
onSVJson([]). You’ll either have to strip this out, or read the API documentation and try another request format. My guess would be that leaving out the final&callback=onSVJsonshould do the trick.