Method Json.opt

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

Prototypes

inout(ReturnTypeString.T) opCast(T)()() inout;

inout(ReturnTypeString.T) get(T)()() inout;

const(ReturnTypeString.T) opt(T)(const(T) def = T.init)(
  const(ReturnTypeString.T) def
) const;

ReturnTypeString.T opt(T)(T def = T.init)(
  ReturnTypeString.T def
);

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.