The OpenD Programming Language

JSONValue.type

Returns the JSONType of the value stored in this structure.

struct JSONValue
@property const pure nothrow @safe @nogc
type
()

Examples

string s = "{ \"language\": \"D\" }";
JSONValue j = parseJSON(s);
assert(j.type == JSONType.object);
assert(j["language"].type == JSONType.string);

Meta