public _json ( mixed $data, integer $code = 200, boolean $encode = true, string $charset = 'utf-8', integer $option ) | ||
$data | mixed | JSON data |
$code | integer | HTTP status code |
$encode | boolean | Whether to perform JSON encoding |
$charset | string | Charset |
$option | integer | Bitmask Json constant such as JSON_HEX_QUOT |