src/MVC/View.php
function JSON($data)
    {
        $this->set['load_layer'] = false;
        $this->delegate->getResponse()->setContentType('json');
        echo json_encode($data);
    }
function JSON($data)
    {
        $this->set['load_layer'] = false;
        $this->delegate->getResponse()->setContentType('json');
        echo json_encode($data);
    }
输出JSON

@param $data