I have checked the logs of my PHP function and I have correctly formatted JSON data that I am returning from the method. The AJAX is calling it and returning, getting a null value for the response variable. Any Ideas? Here is the AJAX code:

```
$.ajax({
       type: "POST",
       url: "index.php/controllerFile/get_standby",
       data: 'id=' + $(this).attr('id'),
       success: function(response){  

             console.log('response is: ' + response); //It is null here
         $.colorbox({'href':'index.php/config/view/standby' + response.urlData,'width':1000,'title':'Standby People'});         
       },

       dataType:'json'
     });

```

Here is the PHP function:

```
function get_standby()
    {

        $id = $this->input->post('id');

        $this->load->model('teetime');
        $url['urlData'] = ($this->teetime->get_standby_by_id($id));

        $printing = json_encode($url);
        log_message('error', 'JSON ' . $printing);
        return $printing;

    }

```