classes/Response.php
public static function json($payload){
        static::type(static::TYPE_JSON);
        static::$payload[] = json_encode($payload, Options::get('core.response.json_flags',JSON_NUMERIC_CHECK|JSON_BIGINT_AS_STRING));
    }
public static function json($payload){
        static::type(static::TYPE_JSON);
        static::$payload[] = json_encode($payload, Options::get('core.response.json_flags',JSON_NUMERIC_CHECK|JSON_BIGINT_AS_STRING));
    }
public static function json ( $ payload ) { static :: type ( static :: TYPE_JSON ) ; static :: $ payload [ ] = json_encode ( $ payload , Options :: get ( 'core.response.json_flags' , JSON_NUMERIC_CHECK | JSON_BIGINT_AS_STRING ) ) ; }
Append a JSON object to the buffer.
@param  mixed $payload Data to append to the response buffer
Append a JSON object to the buffer .