public function setResults($data, ...$args)
    {
        if (is_array($data)) {
            return $this->setDot('json.results', $data);
        }

        return $this->set('json', 'results', $data, ...$args);
    }
public function setResults($data, ...$args)
    {
        if (is_array($data)) {
            return $this->setDot('json.results', $data);
        }

        return $this->set('json', 'results', $data, ...$args);
    }
public function setResults ( $ data , ... $ args ) { if ( is_array ( $ data ) ) { return $ this -> setDot ( 'json.results' , $ data ) ; } return $ this -> set ( 'json' , 'results' , $ data , ... $ args ) ; }
Sets a JSON result

@param *mixed $data
@param mixed  ...$args

@return RestTrait
Sets a JSON result