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.

Members

Aliases

_jsonizeIgnoreExtra
alias _jsonizeIgnoreExtra = ignoreExtra
Undocumented in source.

Functions

_readMember
auto _readMember()
Undocumented in source. Be warned that the author may not have intended to support it.
_writeMember
void _writeMember(T val)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

type
enum type;
Undocumented in source.

Static variables

_jsonizeCtors
constructor[string] _jsonizeCtors;
Undocumented in source.

Templates

_getUDAs
template _getUDAs(string name, alias uda)
Undocumented in source.
_membersWithUDA
template _membersWithUDA(uda)
Undocumented in source.
_writeMemberType
template _writeMemberType(string name)
Undocumented in source.

Parameters

ignoreExtra

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

Meta