NonSerialized

A template that designates fields which should not be serialized to Json.

template NonSerialized (
fields...
) {}

Examples

struct Point { int x, y, z; mixin NonSerialized!(x, z); }
assert(jsonParse!Point(toJson(Point(1, 2, 3))) == Point(0, 2, 0));

Meta