title: Get value of Json With Gson
body: <p>i don't arrive to get the name of the containerStatuses.
  I tried this (regarding a precedent post), the error is reported on the get("name") with "The method get(String) is undefined for the type JsonElement".</p>
  
  <p>Thanks for help</p>
  
  <pre><code>JsonObject data = new Gson().fromJson(myjsoncontent, JsonObject.class);
  JsonArray items = data .get("items").getAsJsonArray();      
      for(JsonElement element : items){
           JsonObject object = element.getAsJsonObject();
           String containerstatusesname = object.get("status").getAsJsonObject().get("containerStatuses").getAsJsonArray().get(0).get("name").getAsString();
  }
  
  </code></pre>
  
  <pre><code>// My Json Content
  
  {
      "kind": "Space",
      "apiVersion": "v1",
      "metadata": {
          "selfLink": "something",
          "resourceVersion": "something"
      },
      "items": [
          {
              "status": {
                  "containerStatuses": [
                   {
                     "name": "thisismyname"
                   }
                  ]               
              }
          } 
      ]
  }
  </code></pre>