protected function makeJson(string $method, $params = []) : array
    {
        return [
            'json' => [
                'method' => $this->config['preserve_case'] ?
                    $method : strtolower($method),
                'params' => (array) $params,
                'id'     => $this->rpcId++,
            ],
        ];
    }
protected function makeJson(string $method, $params = []) : array
    {
        return [
            'json' => [
                'method' => $this->config['preserve_case'] ?
                    $method : strtolower($method),
                'params' => (array) $params,
                'id'     => $this->rpcId++,
            ],
        ];
    }
protected function makeJson ( string $ method , $ params = [ ] ) : array { return [ 'json' => [ 'method' => $ this -> config [ 'preserve_case' ] ? $ method : strtolower ( $ method ) , 'params' => ( array ) $ params , 'id' => $ this -> rpcId ++ , ] , ] ; }
Construct json request.

@param string $method
@param mixed  $params

@return array
Construct json request .