title: get value from a JSONObject
body: <p>I have a  JSONObject. </p>
  
  <pre class="lang-js prettyprint-override"><code>{
    "_shards":{
        "total":251,
        "failed":0,
        "successful":251
     },
     "hits":{
        "hits":[
  
        ],
        "total":7775532,
        "max_score":0
     },
     "took":517,
     "timed_out":false,
     "facets":{
        "terms":{
           "total":2287,
           "other":0,
           "terms":[
              {
                 "count":2268,
                 "term":"contact"
              },
              {
                 "count":19,
                 "term":""
              }
           ],
           "_type":"terms",
           "missing":424
        }
     }
  }
  </code></pre>
  
  <p>I want to get the value of hits.total which here is 7775532. 
  How can I get that ? Is there some function that can help ? I am using Java</p>