code: @SuppressWarnings("unchecked")
      public static <E> String serialize(E object, ParameterizedType<E> parameterizedType) throws IOException {
          return mapperFor(parameterizedType).serialize(object);
      }
docs: Serialize a parameterized object to a JSON String.
  
  @param object The object to serialize.
  @param parameterizedType The ParameterizedType describing the object. Ex: LoganSquare.serialize(object, new ParameterizedType&lt;MyModel&lt;OtherModel&gt;&gt;() { });