private JsonNode convertArray(ArrayFormatInfo arrayFormatInfo, String path, Object object) {
        checkState(object.getClass().isArray(),
                String.format(
                        "The object is not typed array, actual type is [%s] (path=[%s], data=[%s]).",
                        object.getClass(), path, object));

        Object[] array = (Object[]) object;

        ArrayNode arrayNode = objectMapper.createArrayNode();
        for (int i = 0; i < array.length; ++i) {
            String childPath = path + "[" + i + "]";
            Object childObject = array[i];
            arrayNode.add(convert(arrayFormatInfo.getElementFormatInfo(), childPath, childObject));
        }

        return arrayNode;
    }
Object mapper that is used to create output JSON objects.
inlong-sort/sort-formats/format-rowdata/format-rowdata-json/src/main/java/org/apache/inlong/sort/formats/json/JsonRowSerializationSchema.java