readString

Reads a single double value.

string
readString
(
R
)
(
ref R nodes
)

Parameters

nodes R

An input range of JSON parser nodes

Throws

Throws a JSONException is the node range is empty or nodes.front is not a string.

Examples

auto j = parseJSONStream(`"foo"`);
string value = j.readString;
assert(value == "foo");
assert(j.empty);

Meta