title: Extracting text from Http response
body: <p>following is the screenshot of http respone in java - </p>
  
  <p><a href="https://i.stack.imgur.com/2bhlZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2bhlZ.png" alt="screenshot of http response"></a></p>
  
  <p>and following is the text form of response:</p>
  
  <pre><code>{
    "LightGingerTheTextResult": [
      {
        "Confidence": 4,
        "From": 0,
        "LrnFrg": null,
        "LrnFrgOrigIndxs": [],
        "Mistakes": [
          {
            "CanAddToDict": false,
            "From": 0,
            "To": 0
          }
        ],
        "ShouldReplace": true,
        "Suggestions": [
          {
            "LrnCatId": 12,
            "Text": "An"
          },
          {
            "LrnCatId": 45,
            "Text": "A"
          }
        ],
        "To": 0,
        "TopLrnCatId": 12,
        "Type": 3,
        "UXFrgFrom": 0,
        "UXFrgTo": 6
      }
    ]
  }
  </code></pre>
  
  <p>I want to extract the "text" in the suggestion.  </p>
  
  <p>This is my part with json. I am getting final response in "finalResult"- </p>
  
  <pre><code>JSONObject json = new JSONObject();
          try
          {
              StringBuffer response =urllib.urlopen(url);
              String finalResponse= response.toString();
              System.out.println("final response"+finalResponse);
              StringBuffer result=(StringBuffer) json.get(finalResponse);
              //finalResult=URLEncoder.encode(result.toString(), "UTF-8");
              String finalResult=result.toString();
          }
          catch (Exception e) {
              System.out.println(e.getMessage());
          }
  </code></pre>