示例#1
0
文件: coReq.php 项目: hornos/cobra
 public static function json($obj = NULL, $obclean = COBRA_REQUEST_JSON_OBCLEAN)
 {
     if ($obclean) {
         __k_ob_clean();
     }
     echo json_encode($obj);
 }
示例#2
0
文件: k.php 项目: hornos/cobra
function __k_json($str = '', $type = 'exception', $obclean = COBRA_KERNEL_JSON_OBCLEAN)
{
    if ($obclean) {
        __k_ob_clean();
    }
    echo json_encode(array('type' => $type, 'data' => $str));
}