title: How to extract result content from play.mvc.Result object in play application?
body: <p>actually I am doing redirect from one play application to another play application, finally I receive response as Result object.. Below is the action in two applications. I am redirecting from apllication1 to application2. Application 2 will return JSON string, that I need to extract.  </p>
  
  <p>How can I retrieve JSON content from Result object?</p>
  
  <p><strong>Application1:</strong></p>
  
  <pre><code>public static Result redirectTest(){
  
      Result result =  redirect("http://ipaddress:9000/authenticate");
      /*** here I would like to extract JSON string from result***/
      return result;
  }
  </code></pre>
  
  <p><strong>Application2:</strong></p>
  
  <pre><code>@SecuredAction
  public static Result index() {
       Map&lt;String, String&gt; response = new HashMap&lt;String, String&gt;();
       DemoUser user = (DemoUser) ctx().args.get(SecureSocial.USER_KEY);
  
         for(BasicProfile basicProfile: user.identities){
             response.put("name", basicProfile.firstName().get());
             response.put("emailId", basicProfile.email().get());
             response.put("providerId", basicProfile.providerId());
             response.put("avatarurl", basicProfile.avatarUrl().get());
         }
  
      return ok(new JSONObject(response).toString());
  }
  </code></pre>