static <E> DecodeJson<List<E>> decodeList(DecodeJson<E> decodeJson) {
        return node -> {
            if (node.isArray()) {
                List<E> result = new ArrayList<>();
                Iterator<JsonNode> elements = node.elements();
                while (elements.hasNext()) {
                    result.add(decodeJson.decode(elements.next()));
                }
                return result;
            }
            throw throwJsonMappingException("JSON array", node);
        };
    }
Decode the JSON node provided into an instance of `T`.

@throws JsonMappingException if `node` cannot be decoded into `T`.
server-common/src/main/java/org/apache/kafka/server/util/json/DecodeJson.java