Add convenience wrapper json::write function
This commit is contained in:
parent
d42fdfc771
commit
3a37fcde35
@ -274,6 +274,11 @@ json::parse (const char *start)
|
|||||||
{ return parse (start, start + strlen (start)); }
|
{ return parse (start, start + strlen (start)); }
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
json::write (const json::node &node, std::ostream &os)
|
||||||
|
{ node.write (os); }
|
||||||
|
|
||||||
|
|
||||||
const json::object&
|
const json::object&
|
||||||
json::node::to_object (void) const
|
json::node::to_object (void) const
|
||||||
{ throw error ("node is not an object"); }
|
{ throw error ("node is not an object"); }
|
||||||
|
Loading…
Reference in New Issue
Block a user