std.json dynamic initialization of JSONValue

Adam D. Ruppe destructionator at gmail.com
Tue Dec 6 13:49:02 PST 2011


Adam D. Ruppe Wrote:
> 				val.object[name] = toJsonValue!(typeof(member), R)(member, formatToStringAs, api);


Whoops, that should have been

                                val.object[name] = toJsonValue(member);


(I copy pasted this out of my web.d module, which can add a toString() method to the json too,
so it's a little more complicated. And probably useless.)


More information about the Digitalmars-d mailing list