public static String marshall(
            @Nonnull FormatInfo format) {
        ObjectMapper objectMapper = getObjectMapper();
        try {
            return objectMapper.writeValueAsString(format);
        } catch (JsonProcessingException e) {
            throw new IllegalStateException("Cannot serialize the format " + format + ".", e);
        }
    }
Returns the json representing the given format.

@param format The format to be marshalled.
@return The json representing the given format.
inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/FormatUtils.java