Packages

package json

Type Members

  1. trait JsonTemplate extends AnyRef

    All JSON templates to be used with JsonTemplateMapper must extend this class.

    All JSON templates to be used with JsonTemplateMapper must extend this class.

    Json fields should be private fields and fields that are null will not be serialized.

  2. 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.
    See also

    https://github.com/FasterXML/jackson

  3. trait ListOfJsonTemplate extends JsonTemplate

    All JSON templates to be used with JsonTemplateMapper that need to be wrapped in a list must extend this class.

    All JSON templates to be used with JsonTemplateMapper that need to be wrapped in a list must extend this class.

    Json fields should be private fields and fields that are null will not be serialized.

Ungrouped