public static <T> T parseBytesAs(byte[] input, Class<T> clazz) throws IOException {
        return MAPPER.readValue(input, clazz);
    }
Parse a JSON byte array into a generic type T, or throws a JsonProcessingException in the case of exception.
server-common/src/main/java/org/apache/kafka/server/util/Json.java