title: How to parse JSON results from Unirest call
body: <p>I'm using the <a href="http://unirest.io/java.html" rel="noreferrer">Unirest library</a> to retrieve JSON from a Mashape API. I have the call working using the following code:</p>
  
  <pre><code>HttpResponse&lt;JsonNode&gt; request = Unirest.get(URL)
    .header("X-Mashape-Authorization", MASHAPE_AUTH)
    .asJson();
  </code></pre>
  
  <p>This returns my JSON in the form of <code>HttpResponse&lt;JsonNode&gt;</code>, which I am unfamiliar with.</p>
  
  <p>From reading the limited <a href="http://unirest.io/java.html" rel="noreferrer">documentation</a>, It seems that I have to call <code>getBody()</code> on the response object in order to get a JsonNode object back. I still have no idea what to do with the JsonNode object however.</p>
  
  <p>What is the best way to begin to parse this data? </p>
  
  <p><strong>Edit:</strong>
  In case it helps with giving examples, the JSON I want to parse looks like this:</p>
  
  <pre><code>{
    "success": "1",
    "error_number": "",
    "error_message": "",
    "results": [
      {
        "name": "name1",
        "formatedName": "Name 1"
      },
      {
        "name": "testtesttest",
        "formatedName": "Test Test Test"
      },
      {
        "name": "nametest2",
        "formatedName": "Name Test 2"
      },
      {
        "name": "nametest3",
        "formatedName": "Name Test 3"
      }
    ]
  }
  </code></pre>