code: public String getBody() {
          JsonObject wrapper = new JsonObject();
          wrapper.add(type, obj);
          return gsonBuilder.create().toJson(wrapper);
      }
docs: Get the JSON encoded string representation of the object to be created.
  
  @return the JSON encoded object