Class JSONWrappedObject

  • All Implemented Interfaces:
    JsonSerializable

    public class JSONWrappedObject
    extends Object
    implements JsonSerializable
    General-purpose wrapper class that can be used to decorate serialized value with arbitrary literal prefix and suffix. This can be used for example to construct arbitrary Javascript values (similar to how basic function name and parenthesis are used with JSONP).
    See Also:
    JSONPObject