Call controller by ajax but returning html instead of just json data in magento 1.9
I have created ajax function to call controller, and in conmtroller i have fetched some data and return as json, but in ajax function in response it is printing whole html page, instead of just json data. Controller: <?php class…