title: Iterate through JSON array with Play framework 2.2 (java)
body: <p>Hi and thank you for reading.</p>
  
  <p>I have to call a restful service via the Play framework and parse the json result to an object list. My problem is there are thousands of resources for creating a restful service with play but not much about the other direction. </p>
  
  <p>My next problem is I'm only able to find examples of service calls in controllers. Is it a bad idea to call the service from a model? How would I call this service (without the need for a result)? This is what I have found so far.</p>
  
  <pre><code>return async(
      WS.url("http://localhost:3021/Dashboard.svc/Conversation").get().map(
          new Function&lt;WS.Response, Result&gt;() {
              public Result apply(WS.Response response) {
                  return ok(response.asJson());
              }
          }
      )
  );
  </code></pre>
  
  <p>I'm new to Play, so forgive me if I ask stupid questions. I feel better with c# at the moment.</p>
  
  <p>Thanks in advance!
  Ben</p>