as

It allows you to read deep values inside a json. If possibile it converts value to type T.

  1. SafeValue!T as(JSONValue json, string path, T defaultValue)
    pure nothrow
    as
    (
    T
    )
    (
    in JSONValue json
    ,
    in string path = ""
    ,
    in T defaultValue = T.init
    )
  2. SafeValue!(typeof(null)) as(JSONValue json, string path)

Meta