title: Why JSONObject.get("name") returns null?
body: <p>I am trying to access an element in one of my JSONObject. I am using 
  json-simple-1.1.1.jar. I can access the first "course" like you see in the code. The problem is, I cannot access the elements like "CourseNo" or "SubjectName". </p>
  
  <p>My JSON data is:</p>
  
  <pre><code>[
      {
          Course: {
              SubjectName: "ACCT",
              CourseNo: "201",
              SectionNo: "A",
              Instructors: [
                  {
                      Name: "AYLÄ°N SUNA",
                      Surname: "Ã–ZKAYA",
                      IsPrimary: true
  }
  ],
  Schedule: [
  {
  StartDate: "/Date(1347829200000)/",
  FinishDate: "/Date(1356645600000)/",
  MeetingTime: [
  {  
       .... and it goes like that.
  </code></pre>
  
  <p>This is just the first element of course array ( course[0] ). I can reach it but not it's elements like CourseNo..</p>
  
  <p>Here is my simple code:</p>
  
  <pre><code>public class CourseQuerySystem {
      public static void main(String[] args) throws FileNotFoundException{
          FileReader reader = new FileReader("CoursesOffered.json");
          JSONArray courseData = (JSONArray)JSONValue.parse(reader);
          JSONObject firstCourse = (JSONObject)courseData.get(0);  // first course
          System.out.println(firstCourse); // it works 
  
          String courseNo = (String) firstCourse.get("CourseNo");
          System.out.println(courseNo); // returns NULL
  
          boolean contains = firstCourse.containsKey("CourseNo");
          System.out.println(contains);  // returns false
  
      }
  }
  </code></pre>
  
  <p>So, normally string courseNo should be equal to "201" but it returns null.
  And boolean contains should be true but it's not.</p>
  
  <p>My output:</p>
  
  <pre><code>{"Course":{"Instructors":[{"IsPrimary":true,"Surname":"ÖZKAYA","Name":"AYLİN
  SUNA"}],"SubjectName":"ACCT","Schedule": .... (it goes.. this is true)
  null 
  false
  </code></pre>
  
  <p>Thanks for help!</p>