controllers/front/endpoint.php
/**
     * Output a json response and terminate the current script
     *
     * @param $content json-serializable data
     *
     * @throws PrestaShopException
     */
Output a json response and terminate the current script
@param $content json-serializable data


Output a json response and terminate the current script @param $content json - serializable data
protected function ajaxRenderJson($content)
    {
        header('Content-Type: application/json');
        $this->ajaxDie(json_encode($content, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
    }
protected function ajaxRenderJson ( $ content ) { header ( 'Content-Type: application/json' ) ; $ this -> ajaxDie ( json_encode ( $ content , JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE ) ) ; }
Output a json response and terminate the current script
 @param $content json-serializable data
Output a json response and terminate the current script @param $content json - serializable data