static JsonValue apply(JsonNode node) {
        if (node instanceof ObjectNode) {
            return new JsonObject((ObjectNode) node);
        } else if (node instanceof ArrayNode) {
            return new JsonArray((ArrayNode) node);
        } else {
            return new BasicJsonValue(node);
        }
    }
If this is a JSON array, return a JsonArray wrapped by an `Optional`. Otherwise, return Empty.
server-common/src/main/java/org/apache/kafka/server/util/json/JsonValue.java