title: Java representation of JSON Object
body: <p>I am trying to deserialize the following string, I am somewhat new to java and I cannot get this to work for the life of me... I am only trying to decode two strings in the object for now. My JSON and Java classes below. I am getting the result variable ok.</p>
  
  <pre><code>{
     "result": "true",
     "recentlyMarkedTerritories": {
        "0": {
           "pk_activity": "471",
           "fk_activity_type": "100",
           "activity_content": "Hhhhh",
           "fk_user": "2",
           "activity_image": "2_QZe73f4t8s3R1317230457.jpg",
           "created": "1317244857",
           "activity_status": "1",
           "activity_location_lat": "43.515283",
           "activity_location_lon": "-79.880678",
           "fk_walk": null,
           "fk_event_location": "73",
           "user_point": "0",
           "public_image": "0",
           "fk_event_location_lat": "43.515273",
           "fk_event_location_lon": "-79.879989",
           "profile_image": "2_y9JlkI3CZDml1312492743.jpg",
           "user_gender": "1",
           "user_dob": "236073600",
           "user_nickname": "junoman",
           "isFriend": "false",
           "profile_image_thumb": "2_y9JlkI3CZDml1312492743_t.jpg",
           "activity_image_thumb": "2_QZe73f4t8s3R1317230457_t.jpg",
           "relationship_status_idx": "2",
           "isBlocked": "false"
        },
        "1": {
           "pk_activity": "469",
           "fk_activity_type": "100",
           "activity_content": "Jsjsjs",
           "fk_user": "1",
           "activity_image": null,
           "created": "1317244508",
           "activity_status": "1",
           "activity_location_lat": "43.515283",
           "activity_location_lon": "-79.880678",
           "fk_walk": null,
           "fk_event_location": "73",
           "user_point": "0",
           "public_image": "0",
           "fk_event_location_lat": "43.515273",
           "fk_event_location_lon": "-79.879989",
           "profile_image": "1_4Cpkofueqnrb1316895161.jpg",
           "user_gender": "1",
           "user_dob": "116841600",
           "user_nickname": "JoePennington",
           "isFriend": "false",
           "profile_image_thumb": "1_4Cpkofueqnrb1316895161_t.jpg",
           "activity_image_thumb": null,
           "relationship_status_idx": "1",
           "isBlocked": "false"
        },
        .....
     }
  }
  </code></pre>
  
  <p>And my java class below</p>
  
  <pre><code>RecentActivity infoList = null;
  Gson gson = new Gson();
  infoList = gson.fromJson(JSONString, RecentActivity.class);
  
  public class RecentActivity {
      String result;
      recentlyMarkedTerritories recentlyMarkedTerritories = null;
  
      public RecentActivity() {
  
      }
  
      public class recentlyMarkedTerritories {
          public Set&lt;recentlyMarkedTerritories&gt; pk_activity = new HashSet&lt;recentlyMarkedTerritories&gt;() ;
  
          public recentlyMarkedTerritories() {    }
      }
  }
  </code></pre>
  
  <p>Please forgive my lack of description but I'm sure the code helps. The JSON is already used in other applications so changing it is not an option.. :(</p>
  
  <p>Thanks!</p>