How do I pass parameters as JSON format to the HTTP client request?
You can add it to the request like so:

use Drupal\Component\Serialization\Json;
...
$response = $client-&gt;get($url, [
    'headers' =&gt; ['Accept' =&gt; 'text/plain'],
    'json' =&gt; Json::decode($params),
]);