It is rather awkward to read a file as a string.
(getline() with EOF works, but it's hard to remember.)
It would be helpful if the reader could read from an
istream, and if the writer could write to an ostream.
(I would add this myself, but by Subversion does not
support SSL.)
Logged In: YES
user_id=1540698
Originator: YES
Added
- parse(istream&),
- operator>>(istream&, Json::Value&), and
- operator<<(ostream&, Json::Value&),
with sensible defaults for the operators. Also, operator>>() can throw std::exception.
I may have messed up the code section of the front-page jsoncpp.dox -- not sure. It shows up funny in my browser.
Logged In: YES
user_id=1540698
Originator: YES
Forgot to close.
Logged In: YES
user_id=1540698
Originator: YES
Forgot to close.