std.data.json formal review

Sönke Ludwig via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 17 13:07:26 PDT 2015


Am 17.08.2015 um 21:32 schrieb Suliman:
> Why not working:
> JSONValue x = parseJSONValue(`{"a": true, "b": "test"}`);
>
> but:
> string str = `{"a": true, "b": "test"}`;
> JSONValue x = parseJSONValue(str);
>
> work fine?

toJSONValue() is the right function in this case. I've update the 
docs/examples to make that clearer.


More information about the Digitalmars-d mailing list