Add convenience wrapper json::write function

This commit is contained in:
Danny Robson 2012-04-12 14:11:22 +10:00
parent d42fdfc771
commit 3a37fcde35

View File

@ -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"); }