title: How to get response json from Spring WebClient
body: <p>I've been trying to follow the simplest tutorials out there for how to use <code>WebClient</code>, which I understand to be the next greatest thing compared to <code>RestTemplate</code>.</p>
  <p>For example, <a href="https://www.baeldung.com/spring-5-webclient#4-getting-a-response" rel="noreferrer">https://www.baeldung.com/spring-5-webclient#4-getting-a-response</a></p>
  <p><a href="https://i.stack.imgur.com/kc1fw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kc1fw.png" alt="enter image description here" /></a></p>
  <p>So when I try to do the same thing with <a href="https://petstore.swagger.io/v2/pet/findByStatus?status=available" rel="noreferrer">https://petstore.swagger.io/v2/pet/findByStatus?status=available</a> which is supposed to return some json,</p>
  <pre class="lang-java prettyprint-override"><code>WebClient webClient = WebClient.create();
  webClient.get().uri(&quot;https://petstore.swagger.io/v2/pet/findByStatus?status=available&quot;).exchange().block();
  </code></pre>
  <p><a href="https://i.stack.imgur.com/tG7q0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tG7q0.png" alt="enter image description here" /></a></p>
  <p>I have absolutely no idea how to proceed from the resultant <code>DefaultClientResponse</code> object. It shouldn't be this convoluted to arrive at the physical response body, but I digress.</p>
  <p>How do I get the response body with the code I provided?</p>