public function requestJson(string $method, string $uri, ?array $get = null, ?array $post = null, ?array $files = null, ?array $headers = null)
    {
        $headers = array_merge([HttpInterface::HEADER_ACCEPT => 'application/json'], $headers ?: []);
        $options = $this->prepareOptions($get, $post, $files, $headers);
        $response = $this->request($method, $uri, $options);

        return $this->parseJsonResponse($response);
    }
public function requestJson(string $method, string $uri, ?array $get = null, ?array $post = null, ?array $files = null, ?array $headers = null)
    {
        $headers = array_merge([HttpInterface::HEADER_ACCEPT => 'application/json'], $headers ?: []);
        $options = $this->prepareOptions($get, $post, $files, $headers);
        $response = $this->request($method, $uri, $options);

        return $this->parseJsonResponse($response);
    }
@param string     $method
@param string     $uri
@param array|null $get
@param array|null $post
@param array|null $files
@param array|null $headers

@throws GuzzleException
@throws ParseContentException

@return mixed