Could not able to get the reponse printed in the console
===

I use the following code to get the response printed in the console. But i'm getting as null in the console.

In the index.php url i have the JSON code 

    new Ajax.Request('http://10.239.50.92/sample/index.php', {
     method:'get', 
      onSuccess: function(products){  
    				//alert(products.hasOwnProperty(value));  
    				//alert(products.hasOwnProperty());
    				console.log(products.responseJSON);
       }
    });