vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Function Json.opCast

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

inout inout(T) opCast(T)();

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


Sönke Ludwig


© 2012-2015 RejectedSoftware e.K.


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