package json
Type Members
-
trait
JsonTemplate extends AnyRef
All JSON templates to be used with
JsonTemplateMappermust extend this class.All JSON templates to be used with
JsonTemplateMappermust extend this class.Json fields should be private fields and fields that are
nullwill not be serialized. -
class
JsonTemplateMapper extends AnyRef
Helper class for serializing and deserializing JSON.
Helper class for serializing and deserializing JSON.
The interface uses Jackson as the JSON parser. Some useful annotations to include on classes used as templates for JSON are:
@JsonInclude(JsonInclude.Include.NON_NULL)- Does not serialize fields that are
null.
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)- Fields that are private are also accessible for serialization/deserialization.
- Does not serialize fields that are
-
trait
ListOfJsonTemplate extends JsonTemplate
All JSON templates to be used with
JsonTemplateMapperthat need to be wrapped in a list must extend this class.All JSON templates to be used with
JsonTemplateMapperthat need to be wrapped in a list must extend this class.Json fields should be private fields and fields that are
nullwill not be serialized.