@Override
    public T from(final InputStream json) {
        return FunctionUtils.doAndHandle(() -> {
            val jsonString = readJsonFrom(json);
            return readObjectFromString(jsonString);
        }, throwable -> null).get();
    }
Generic class to serialize objects to/from JSON based on jackson.

@author Misagh Moayyed
@param <T> the type parameter
@since 4.1
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/BaseJacksonSerializer.java