Interface JSON.Replacer

  • Enclosing class:
    JSON

    @JsFunction
    public static interface JSON.Replacer
    A function that alters the behavior of the stringification process. If this value is null or not provided, all properties of the object are included in the resulting JSON string.
    Must be an interface with only 1 method.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • call

        Object call​(String key,
                    Object value)
        Method of function to alter the behavior of the stringification process.
        Parameters:
        key - property key of object.
        value - object related to the key.
        Returns:
        the value to show in the string.