code: @SuppressWarnings("unchecked")
      public static <E> String serialize(E object) throws IOException {
          return mapperFor((Class<E>)object.getClass()).serialize(object);
      }
docs: Serialize an object to a JSON String.
  
  @param object The object to serialize.