CakePHP: Function to send json response