title: How to parse nested JSON with GSON
body: <p>Lets say i have a JSON like: </p>
  
  <pre><code>{
      "assignments": [
          {
              'id': '111',
              'activities': [
                  {
                      'activity': 'Activity 1',
                  },
                  {
                      'activity': 'Activity 2'
                  }
              ]
          },
          {
              'id': '2222',
              'Activities': [
                  {
                      'activity': 'Activity 1'
  
                  }
              ]
          }
      ]
  }
  </code></pre>
  
  <p>And I'm using GSON to parse it. I have a correctly set up Javabean and can access id without problems. How do i get the activities per id / object?</p>
  
  <p>EDIT: more code:</p>
  
  <pre><code>public class Assignment {
  
  private String id;
  
  public String getId() {
      return id;
  }
  }
  </code></pre>
  
  <hr>
  
  <pre><code>Gson mGson= new Gson();
  assignmentList=mGson.fromJson(json, AssignmentList.class);
  assignmentList.getAssignments().get(0).getId());
  </code></pre>