title: Android JSONObject : Search function
body: <p>I am trying to search from JSON code that has been received beforehand..</p>
  
  <p>I was wondering are there any efficient way to search specific object?
  Or should i use straight forward search like looping and if statement?</p>
  
  <p>I have parsing the JSON successfully, and it stored in my String variable..
  The JSON contains Array of Objects..</p>
  
  <p>Now i want to search for specific ObjectName and get the Whole Objects..
  The JSON will be like</p>
  
  <pre><code>   [
       {
           "name":"blank",
           "date":"2014-06-05T00:44:30Z",
           "boolean":null,
       },
       {
           "name":"hello",
           "date":"2013-05-04T00:43:20Z",
           "boolean":null,
       }
     ]
  </code></pre>
  
  <p>I want to search for name = "hello" and get the last Array returned</p>
  
  <p>Can anyone show me how?</p>
  
  <p>Thanks a lot!</p>