Wanted: Review manager for std.data.json
Sönke Ludwig via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 8 03:02:31 PDT 2015
Am 08.04.2015 um 10:24 schrieb Andrea Fontana:
> Any plan to support functions like these?
>
> http://forum.dlang.org/thread/lrknjl$co7$1@digitalmars.com?page=4#post-bcszdbasnjzmbwzdgeqy:40forum.dlang.org
There is opt() [1], which takes a path and returns a
`Nullable!JSONValue`. "get" is unfortunately already taken by
std.typecons.Algebraic, so we can't use it for its AA meaning.
Maybe another overload of opt?
JSONValue opt(JSONValue default_value, string[] path...);
[1]:
http://s-ludwig.github.io/std_data_json/stdx/data/json/value/json_value.opt.html
More information about the Digitalmars-d
mailing list