public static function json() { @header('Content-type: application/json; charset=utf-8'); $args = func_get_args(); if (count($args) == 1) { self::jsonCustom($args[0]); } elseif (count($args) == 2) { self::jsonException($args[0], $args[1]); } }