Interface JsonMapping
public interface JsonMapping
Interface to abstract json serialization to/from string.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Default priority of corresponding provider. -
Method Summary
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITYDefault priority of corresponding provider.- Implementation Note:
- could be used to control the load/init order in case multiple providers are specified/included.
- See Also:
-
-
Method Details
-
toJson
Serialize an object to JSON.- Parameters:
object
- object to serialize- Returns:
- JSON representation of the object
-
fromJson
Deserialize an object from it's JSON string representation.- Type Parameters:
T
- generic parametrization class- Parameters:
str
- JSON stringtype
- type of object- Returns:
- object of requested class
-