tryGet

Nullable overload: assigns the unwrapped value into val (leaving it untouched — preserving any pre-set default — on a missing/mismatched field), so a struct's Nullable!T field can be filled directly without a temporary.

  1. bool tryGet(Json j, string key, T val)
  2. bool tryGet(Json j, string key, N val)
    @safe @safe
    bool
    tryGet
    (
    N : Nullable!T
    T
    )
    (
    Json j
    ,
    string key
    ,
    ref N val
    )