httpclient post roh json Körper

$response = Http::contentType('application/json')->send('POST', 'https://google.com', [
  'body' => '{"parameter1":"value1","parameter2":"value2"}'
])->body();
Coding Era