from an input stream.
Defined in header
std::istream& operator>>( std::istream& is, value& jv);
This function parses JSON from an input stream into a
If parsing fails,
std::ios_base::failbit will be set for
will be left unchanged. Regardless of whether
flag is set on
whitespace before and after JSON, because whitespace is considered a part
of JSON. Behaves as [FormattedInputFunction] (https://en.cppreference.com/w/cpp/named_req/FormattedInputFunction).
Note: this operator cannot assume that the stream only contains a single
JSON document, which may result in very underwhelming
performance, if the stream isn't cooperative. If you know that
your input consists of a single JSON document, consider using
parse function instead.
Linear in the size of JSON data.
Basic guarantee. Calls to
may throw. The stream may throw as configured by
The input stream to parse from.
The value to parse into.