public interface MapperFacade extends NitriteMapper
A facade for serializers to convert an object to a Document
and vice versa.
Modifier and Type | Method and Description |
---|---|
Document |
parse(java.lang.String json)
Parses a json string into a nitrite
Document . |
java.lang.String |
toJson(java.lang.Object object)
Serializes an object to a json string
|
asDocument, asObject, asValue, isValueType
Document parse(java.lang.String json)
Parses a json string into a nitrite Document
.
json
- the json string to parsejava.lang.String toJson(java.lang.Object object)
Serializes an object to a json string
object
- the object