json has two issues, it doesn't work with tuple:
(isArray!T)
goes to
(isArray!T || (T.stringof.length > 4 && T.stringof[0..5] ==
"Tuple"))
and right below
else
{
static assert(false, text(`unable to convert type "`,
T.Stringof, `" to json`));
}
and it used Stringof.
This fixes json to work with tuples.
Second, LCD gives me the error:
error : function `Test.main.rate!(d, "", "").rate` cannot access
frame of function `Test.main.__foreachbody1`
Not sure the problem, works fine with DMD. I'm simply accessing a
variable outside a templated function.