diff --git a/source/jstruct/deserializer.d b/source/jstruct/deserializer.d index ab23fa1..de5a2a3 100644 --- a/source/jstruct/deserializer.d +++ b/source/jstruct/deserializer.d @@ -147,6 +147,12 @@ public RecordType fromJSON(RecordType)(JSONValue jsonIn) { mixin("record."~structNames[cnt])~= cast(ulong)jsonVal.uinteger(); } + else static if(__traits(isSame, ForeachType!(structTypes[cnt]), bool)) + { + mixin("record."~structNames[cnt])~= jsonVal.boolean(); + } + + }