mirror of https://github.com/Hax-io/jstruct
parent
dad7e04ccf
commit
a15e0b5bcb
|
@ -34,9 +34,6 @@ public JSONValue serializeRecord(RecordType)(RecordType record)
|
||||||
// pragma(msg, structValues[cnt]);
|
// pragma(msg, structValues[cnt]);
|
||||||
}
|
}
|
||||||
|
|
||||||
import std.traits : isArray;
|
|
||||||
|
|
||||||
|
|
||||||
static if(__traits(isSame, structTypes[cnt], int))
|
static if(__traits(isSame, structTypes[cnt], int))
|
||||||
{
|
{
|
||||||
builtJSON[structNames[cnt]] = structValues[cnt];
|
builtJSON[structNames[cnt]] = structValues[cnt];
|
||||||
|
@ -68,7 +65,6 @@ public JSONValue serializeRecord(RecordType)(RecordType record)
|
||||||
else static if(isArray!(structTypes[cnt]))
|
else static if(isArray!(structTypes[cnt]))
|
||||||
{
|
{
|
||||||
builtJSON[structNames[cnt]] = structValues[cnt];
|
builtJSON[structNames[cnt]] = structValues[cnt];
|
||||||
// pragma(msg, "WAIT", "d"~mixin(structTypes[cnt]));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue