无法将Curl输出转换为JSON

Time for a second set of eyes. I've been looping on this for awhile. The url http://freegeoip.net/json/ appears to return JSON. I can't seem to decode or parse it. Any help would be greatly appreciated. Code follows:

    <?php

    //////////////////////////////////////////////////////////////////////
    //  Debug options
    //////////////////////////////////////////////////////////////////////
     error_reporting(E_ALL);
     error_reporting(E_ALL | E_STRICT);
     ini_set('display_errors', 1);

    function get_ip_address()
    {
        foreach (array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR') as $key) {
        if (array_key_exists($key, $_SERVER) === true) {
            foreach (explode(',', $_SERVER[$key]) as $ip) {
            if (filter_var($ip, FILTER_VALIDATE_IP) !== false) {
                return $ip;
            }
            }
        }
        }
    }

    $myIP = get_ip_address();

    $url = "http://freegeoip.net/json/" . $myIP;
    $cURL = curl_init();
    curl_setopt($cURL, CURLOPT_URL, $url);
    curl_setopt($cURL, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($cURL, CURLOPT_HTTPGET, true);
    curl_setopt($cURL, CURLOPT_HTTPHEADER, array(
        'Content-Type: application/json',
        'Accept: application/json'
    ));

    $result = curl_exec($cURL);
    $myArray = json_decode($result);

    curl_close($cURL);

    //////////////////////////////////////////////////////////////////////
    //  Debug  
    //////////////////////////////////////////////////////////////////////
     echo $myArray->region_code . "<br />";
     echo $myArray->region_name . "<br />";
     echo $myArray->city . "<br />";
     echo $myArray->zip_code . "<br />";
     echo $myArray->time_zone . "<br />";
     echo $myArray->latitude . "<br />";
     echo $myArray->longitude . "<br />";
     echo $myArray->metro_code . "<br />";

Edit : Removed answer.

I put the code into my server and it works perfectly fine for me.

Maybe curl is disabled on his server?