Variant

fromJSON [Variant class]

Given a JSON object as a c-string or JSONValue, returns a Variant object.

// PROTOTYPE
static Variant fromJSON(const char* json);
static Variant fromJSON(const JSONValue& val);

// EXAMPLE
const char *jsonStr = "{\"a\":123}";
Variant data = Variant::fromJson(jsonStr);