Usage of custom class with JSONValue
Edwin van Leeuwen via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Mar 24 09:03:13 PDT 2016
On Thursday, 24 March 2016 at 11:39:13 UTC, arturg wrote:
> isnt alias this supposed to do this implicitly?
>
> convert this
> auto jsValue = JSONValue(new MyClass());
>
> into this
> auto jsValue = JSONValue((new MyClass())._data);
Good point, I did not catch that. That indeed should work and
seems to be a bug. Does it work if _data is a base type (string
or int, etc..)
More information about the Digitalmars-d-learn
mailing list