title: Displaying information read in from a json file - android
body: <p>I have the following (and more, but it's only some of it) code in a json file in the raw folder in my project.</p>
  
  <pre><code>{
  "Monday": [
      {
          "time": "09:15",
          "class": "Nature",
          "room": "AL32"
      },
      {
          "time": "10:15",
          "class": "Nature",
          "room": "AL32"
      }
  ],
  "Tuesday": [
      {
          "time": "12:15",
          "class": "Maths",
          "room": "AL20"
      },
      {
          "time": "13:15",
          "class": "Englsh",
          "room": "AG22"
      }
  ]....etc
  
  }
  </code></pre>
  
  <p>I want it displayed like</p>
  
  <pre><code>Time|Class|Room
  Monday
  09:15|Nature|AL32
  10:15|Nature|AL32
  Tuesday
  12:15|Maths|AL20
  13:15|English|AG22
  etc etc
  </code></pre>
  
  <p>What I have done (so far) is, read in the information in the json file with
  BufferedReader jsonReader = new BufferedReader(new InputStreamReader(this.getResources().openRawResource(R.raw.localjsonfile)));</p>
  
  <p>Then I can print out everything (to the LogCat) in the file with</p>
  
  <pre><code>String readLine = null;
  // While the BufferedReader readLine is not null 
  while ((readLine = jsonReader.readLine()) != null) 
  {
      System.out.println(readLine);
  }
  </code></pre>
  
  <p>but I don't know where to go from there. I'm thinking I store anything in Monday in an array/object called monday (and Tuesday in an array/object called tuesday etc) and then print out the values in the arrays/objects and put them in the TextView fields that I have (I have three textviews called android:id="@+id/time", android:id="@+id/class and android:id="@+id/room") and then the textviews will be reprinted to the screen as needed.</p>
  
  <p>I have only started learning android and java and I know nothing about json, so I'm stuck on how to go any further.</p>