title: JSON parsing in Java not finding items
body: <p>I have the following JSON text to parse in Java:</p>
  
  <pre><code>{
      "items": [
          {
              "key": "D033222DF44E5308482578EB0017588A",
              "Date": "Aug 13 2011",
              "Time": "04:54:46 PM",
              "Company": "CHINA ESSENCE GROUP LTD.",
              "AnnTitle": "FIRST QUARTER RESULTS * FINANCIAL STATEMENT AND RELATED ANNOUNCEMENT",
              "Siblings": "18",
              "SNo": 18
          },
          {
              "key": "C9906046C7F0E232482578EB0030C437",
              "Date": "Aug 13 2011",
              "Time": "04:52:12 PM",
              "Company": "DESIGjsonN STUDIO FURNITURE MFRLTD",
              "AnnTitle": "NOTICE OF BOOK CLOSURE DATE FOR DIVIDEND",
              "Siblings": "18",
              "SNo": 17
          }
      ]
  }
  </code></pre>
  
  <p>Below is my JSONParser class:</p>
  
  <pre><code>import org.json.JSONArray;
  import org.json.JSONException;
  import org.json.JSONObject;
  
  public class JSONParser {
  
  private String input = null;
  
  public JSONParser() {
  }
  
  public JSONParser(String input) {
      setInput(input);
  }
  
  public JSONArray parse() throws JSONException {
      JSONObject obj = new JSONObject();
      return obj.getJSONArray("items");
  }
  
  /**
   * @return the input
   */
  public String getInput() {
      return input;
  }
  
  /**
   * @param input the input to set
   */
  public void setInput(String input) {
      this.input = input;
  }
  }
  </code></pre>
  
  <p>My main() method class contains these codes to execute the parser to parse the "jsonStr" object:</p>
  
  <pre><code>        JSONParser parser = new JSONParser(jsonStr);
          JSONArray array = parser.parse();
          for (int i = 0; i &lt; array.length(); i++) {
              Object obj = array.get(i);
              System.out.println("&gt;&gt; " + obj.toString() + "\n");
          }
  </code></pre>
  
  <p>My output shows:</p>
  
  <pre><code>SEVERE: null
  org.json.JSONException: JSONObject["items"] not found.
  </code></pre>
  
  <p>I am using the json.org provided Java codes for JSON.</p>
  
  <p>How should I parse the above string ?</p>
  
  <p>Thanks.</p>