JsonizeMe

Enable fromJSON/toJSON support for the type this is mixed in to.

In order for fields to be (de)serialized, they must be annotated with jsonize (in addition to having the mixin within the type).

This mixin will _not_ recursively apply to nested types. If a nested type is to be serialized, it must have JsonizeMe mixed in as well.

mixin template JsonizeMe (
JsonizeIgnoreExtraKeys ignoreExtra = JsonizeIgnoreExtraKeys.yes
) {
constructor[string] _jsonizeCtors;
}

Parameters

ignoreExtra

whether to silently ignore json keys that do not map to serialized members

Meta