public interface JsonSupport
serialize and
deserialize itself to JSON.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_TYPE
The JSON property name for the type information for polymorphic mapping of
#getClass(). |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(javax.json.stream.JsonParser json)
Deserializes this object from JSON (JavaScript-Object-Notation).
|
void |
toJson(javax.json.stream.JsonGenerator json)
Serializes this object as JSON (JavaScript-Object-Notation).
|
static final String PROPERTY_TYPE
#getClass().void toJson(javax.json.stream.JsonGenerator json)
json - the JsonGenerator where to write this object to. Has to be in
JsonGenerator.writeStartObject() state.JsonUtil.write(JsonGenerator, String, Object)void fromJson(javax.json.stream.JsonParser json)
toJson(JsonGenerator) - e.g. toJson(JsonGenerator) might write a property with its value while
fromJson(JsonParser) may only deserialze the value as the parent object has to handle the property names
that may appear in any order.json - the JsonParser to read from.Copyright © 2001–2016 mmm-Team. All rights reserved.