How to send POST request in Drupal 8

In Drupal 8 POST request can be sent using Guzzle http library in the following way.

  

//Creating a httpClient Object.
$client = \Drupal::httpClient();
//Some Data
$json_data = ['a'=>5,'b'=>6,'c'=>7];
//Sending POST Request with $json_data to example.com
$request = $client->post('http://example.com', [ 'json' => [ $json_data, ]
]);
//Getting Response after JSON Decode.
$response = json_decode($request->getBody());