title: Parsing Google Books JSON in Android
body: <p>I'm relatively new to Android and never used any parsers before I'm trying to parse the following <a href="https://www.googleapis.com/books/v1/volumes?q=isbn:9780007128457" rel="nofollow">Json</a> from Google books api, extracting the title of the book and author. This is the code so far: </p>
  
  <p><pre>
  public void parseJson(String stringFromInputStream)
      {
          String strParsed = null;
          try 
          {
              JSONobject jsonObject= new JSONObject(stringFromInputStream);</p>
  
  <code>        JSONArray jArray = jsonObject.getJSONArray("items");
          for(int i = 0; i &lt; jArray.length(); i++)
          {
              strParsed = jArray.getJSONObject(i).getString("volumeinfo").toString();
          }
  </code></pre>
  
  <p>
  What I want to do in the above code is to loop through the JSON array which is "items" and get "volumeinfo" then from there I hope to extract title and author but I do not know how to continue. So I hope someone could point me to the right direction and correct me because the above are most likely incorrect.</p>
  
  <p>Thanks. </p>