@SuppressWarnings("unchecked")
        @Override
        public T deserialize(final String topic, final byte[] data) {
            if (data == null) {
                return null;
            }

            try {
                return (T) OBJECT_MAPPER.readValue(data, JSONSerdeCompatible.class);
            } catch (final IOException e) {
                throw new SerializationException(e);
            }
        }
A serde for any class that implements {@link JSONSerdeCompatible}. Note that the classes also need to
be registered in the {@code @JsonSubTypes} annotation on {@link JSONSerdeCompatible}.

@param <T> The concrete type of the class that gets de/serialized
streams/examples/src/main/java/org/apache/kafka/streams/examples/pageview/PageViewTypedDemo.java