Class JSONWrappedObject

  • All Implemented Interfaces:
    JsonSerializable, JsonSerializableWithType

    public class JSONWrappedObject
    extends Object
    implements JsonSerializableWithType
    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).
    Since:
    1.5
    Author:
    tatu
    See Also:
    JSONPObject