deserializeFromJson

Deserializes from Json to type T<br>

Supported only structs yet

T
deserializeFromJson
(
T
)
(
Json src
)
if (
is(T == struct)
)

Examples

struct S
{
   @required
	int a; //get value from Json. Throws RequiredFieldException

   @possible
	int b; //tries to get value from Json

	int c; //will be ignored
}

auto s = deserializeFromJson!S(json);

Meta

Authors

Zaramzan <shamyan.roman@gmail.com>