public static <ENTITY> JsonCollector<ENTITY> collect(Function<ENTITY, String> converter) {
        return new JsonCollectorImpl<>(converter);
    }
@author Emil Forslund
@param <ENTITY> type of the entity
@since 1.0.0
plugin-parent/json-stream/src/main/java/com/speedment/plugins/json/internal/JsonCollectorImpl.java