Usage of custom class with JSONValue

Uldis via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 24 11:03:02 PDT 2016


On Thursday, 24 March 2016 at 17:03:25 UTC, Andre wrote:
> I hoped there is some operator overloading for implicit 
> conversion of my
> class to JSONValue.
> I solved the issue with an toJSON method and a generic 
> functionality which
> checks for this method.
>
> Kind regards
> André


Vibe.d has some serialization with toJson(), fromJson() methods:
http://vibed.org/api/vibe.data.json/serializeToJson
Maybe you can work with that?


More information about the Digitalmars-d-learn mailing list