public static String toJson(final Object object) {
        try {
            return MAPPER.writeValueAsString(object);
        } catch (IOException e) {
            LOG.warn("write to json string error: {}", object, e);
            return Constants.EMPTY_JSON;
        }
    }
To json string.

@param object the object
@return the string
shenyu-common/src/main/java/org/apache/shenyu/common/utils/JsonUtils.java