code: public void put(String key, Object object, boolean serialize){
          if(serialize)
              put(key,gson.toJson(object));
          else
              put(key,object);
      }
docs: Add a specific key value pair to this object.
  @param key key to identify this element by.
  @param object object to be added.
  @param serialize whether to manually serialize this object and store it as a json blob.