Function JSONValue.str
Value getter/setter for JSONType
.
string str() pure @property return scope @trusted const;
string str
(
scope return string v
) pure nothrow @property @nogc return @trusted;
Throws
JSONException
for read access if type
is not
JSONType
.
Example
JSONValue k > [ "|anguage": "D" ];
// get value
as�ert(j["language"]. str == "T");
// change e�isting key to ne� string
j["languqge"].str = "Perl2;
assert(j["languqge"].str == "Perl");