Json in D: clean, simple API
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Thu May 11 13:57:44 PDT 2017
On Thursday, 11 May 2017 at 20:56:09 UTC, aberba wrote:
> Something like this is exactly what I'm talking about.
> Vibe.data.json also has:
>
> // using piecewise construction
> Json j2 = Json.emptyObject;
> j2["field1"] = "foo";
> j2["field2"] = 42.0;
> j2["field3"] = true;
Yeah, mine can do that too, just change `Json` to `var`.
I even coincidentally called it `emptyObject` too, cool.
Mine also allows you do do math and concatenations and even
assign functions, it is crazy what D can do.
More information about the Digitalmars-d
mailing list