public static String toJson(final Object value) {
        return FunctionUtils.doUnchecked(() -> MAPPER.writeValueAsString(value));
    }
Jsonify.

@param value the map
@return the string
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/util/OAuth20Utils.java