On 2016-09-20 21:45, Ram_B wrote:
I'm trying to set fields of object from JSON with traits library. How i
can to it properly?
import std.stdio;
import std.json;
import std.traits;
import std.meta: Alias;
class Obj{
void fromJSON(this T)(JSONValue j){
foreach(field; FieldNameTuple!T
I'm trying to set fields of object from JSON with traits library.
How i can to it properly?
import std.stdio;
import std.json;
import std.traits;
import std.meta: Alias;
class Obj{
void fromJSON(this T)(JSONValue j){
foreach(field; FieldNameTuple!T){