public static String serializeInputOutput(Map<String, Object> object) {
        if (!isSummaryInputOutputJsonSerializationEnabled) {
            return object.toString();
        }

        try {
            return objectMapper.writeValueAsString(object);
        } catch (JsonProcessingException e) {
            logger.error(
                    "The provided value ({}) could not be serialized as Json",
                    object.toString(),
                    e);
            throw new RuntimeException(e);
        }
    }
Serializes the Workflow or Task's Input/Output object by Java's toString (default), or by a
Json ObjectMapper (@see Configuration.isSummaryInputOutputJsonSerializationEnabled)

@param object the Input or Output Object to serialize
@return the serialized string of the Input or Output object
common/src/main/java/com/netflix/conductor/common/utils/SummaryUtil.java