title: Playframework WS API response processing
body: <p>I use The Play WS API from PlayFramework to communicate with external API.
  I need to process the received data, but don't know how. I get a response, and I want to pass it to other function like an JSON Object. How I can achieve that?
  Code I use you can see below.
  Thanks!</p>
  
  <pre><code>def getTasks = Action {
      Async {
        val promise = WS.url(getAppProperty("helpdesk.host")).withHeaders(
          "Accept" -&gt; "application/json",
          "Authorization" -&gt; "Basic bi5sdWJ5YW5vdjoyMDEzMDcwNDE0NDc=" ).get()
        for {
          response &lt;- promise
        } yield Ok((response.json \\ "Tasks"))
      }
    }
  </code></pre>