Commit 87746280 by Aaron Burghardt

Added parse() for streams.

parent 2855c70c
......@@ -1717,6 +1717,12 @@ class basic_json
}
/// deserialize from stream
static basic_json parse(std::istream& i)
{
return parser(i).parse();
}
/// deserialize from stream
friend std::istream& operator>>(std::istream& i, basic_json& j)
{
j = parser(i).parse();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment