title: .thenAccept to string
body: <p>Currently my code is the following:</p>
  
  <pre><code>client.sendAsync(request, BodyHandlers.ofString())
              .thenApply(HttpResponse::body)
              .thenAccept(System.out::println)
              .join()
  </code></pre>
  
  <p>the line .thenAccept(System.out::println) prints a JSON query response from last.fm.</p>
  
  <p>I'm trying to figure out what to replace System.out::println with to instead save the response to a String that I can then iterate through to define parts of an Album and Track object. Any help would be much appreciated.</p>