revapi/src/main/java/org/revapi/configuration/JSONUtil.java
/**
     * Converts the provided javascript object to JSON string.
     *
     * <p>If the object is a Map instance, it is stringified as key-value pairs, if it is a list, it is stringified as
     * a list, otherwise the object is merely converted to string using the {@code toString()} method.
     *
     * @param object the object to stringify.
     *
     * @return the object as a JSON string
     */
Converts the provided javascript object to JSON string.
If the object is a Map instance, it is stringified as key-value pairs, if it is a list, it is stringified as
a list, otherwise the object is merely converted to string using the  toString() method.

@param object the object to stringify.

@return the object as a JSON string
Converts the provided javascript object to JSON string . If the object is a Map instance it is stringified as key - value pairs if it is a list it is stringified as a list otherwise the object is merely converted to string using the toString () method . @param object the object to stringify . @return the object as a JSON string
public static String stringifyJavascriptObject(Object object) {
        StringBuilder bld = new StringBuilder();
        stringify(object, bld);
        return bld.toString();
    }
public static String stringifyJavascriptObject ( Object object ) { StringBuilder bld = new StringBuilder ( ) ; stringify ( object , bld ) ; return bld . toString ( ) ; }
Converts the provided javascript object to JSON string.
Converts the provided javascript object to JSON string .