com.fasterxml.jackson.databind.util.JSONWrappedObject
| Modifier and Type | Field and Description |
|---|---|
| protected final String | _function
JSONP function name to use for serialization |
| protected final JavaType | _serializationType
Optional static type to use for serialization; if null, runtime type is used. |
| protected final Object | _value
Value to be serialized as JSONP padded; can be null. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public JavaType | |
| public Object | |
| public void | serialize(JsonGenerator gen, SerializerProvider provider)
Implements com. |
| public void | serializeWithType(JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
Implements com. |
| _function | back to summary |
|---|---|
| protected final String _function JSONP function name to use for serialization | |
| _serializationType | back to summary |
|---|---|
| protected final JavaType _serializationType Optional static type to use for serialization; if null, runtime type is used. Can be used to specify declared type which defines serializer to use, as well as aspects of extra type information to include (if any). | |
| _value | back to summary |
|---|---|
| protected final Object _value Value to be serialized as JSONP padded; can be null. | |
| JSONPObject | back to summary |
|---|---|
| public JSONPObject(String function, Object value) | |
| JSONPObject | back to summary |
|---|---|
| public JSONPObject(String function, Object value, JavaType asType) | |
| getFunction | back to summary |
|---|---|
| public String getFunction() | |
| getSerializationType | back to summary |
|---|---|
| public JavaType getSerializationType() | |
| getValue | back to summary |
|---|---|
| public Object getValue() | |
| serialize | back to summary |
|---|---|
| public void serialize(JsonGenerator gen, SerializerProvider provider) throws IOException Implements com. Doc from com. Serialization method called when no additional type information is to be included in serialization.
| |
| serializeWithType | back to summary |
|---|---|
| public void serializeWithType(JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer) throws IOException Implements com. Doc from com. Serialization method called when additional type information is expected to be included in serialization, for deserialization to use.
Usually implementation consists of a call to Note that some types (most notably, "natural" types: String, Integer, Double and Boolean) never include type information.
| |