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

Reply via email to