I am using drupal_http_request and drupal_json_decode to retrive and parse json from an external API in the feeds tamper by using the execute php code plugin. My code is as follows:
$json = "https://api.coursera.org/api/onDemandSpecializations.v1?ids=".$field; $response = drupal_http_request($json); $data = drupal_json_decode($response->data); return ($data['elements']['name']);
This returns a null value.
The json is as follows: