src/Support/Http.php
public function json($url, $options = [], $encodeOption = JSON_UNESCAPED_UNICODE, $queries = [])
    {
        is_array($options) && $options = json_encode($options, $encodeOption);

        return $this->setHeaders(['content-type' => 'application/json'])->request('POST', $url, [
            'query' => $queries,
            'body'  => $options
        ]);
    }
public function json($url, $options = [], $encodeOption = JSON_UNESCAPED_UNICODE, $queries = [])
    {
        is_array($options) && $options = json_encode($options, $encodeOption);

        return $this->setHeaders(['content-type' => 'application/json'])->request('POST', $url, [
            'query' => $queries,
            'body'  => $options
        ]);
    }
JSON request.

@param string       $url
@param string|array $options
@param array $queries
@param int          $encodeOption

@return ResponseInterface

@throws HttpException