JSON.get

Converts the JSON value to the corresponding D type - types must match exactly.

More...
  1. inout(T) opCast()
  2. inout(T) get [@property getter]
    struct JSON
    @safe @property inout @trusted
    inout(T)
    get
    (
    T
    )
    ()

Detailed Description

Available Types

  • bool (Type.bool_)
  • double (Type.float_)
  • float (Converted from double)
  • long (Type.int_)
  • ulong, int, uint, short, ushort, byte, ubyte (Converted from long)
  • string (Type.string)
  • JSON[] (Type.array)
  • JSON[string] (Type.object)

See Also

opt, to, deserializeJSON

Meta