mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add pretty(Json::Value)
This commit is contained in:
@@ -29,4 +29,9 @@ std::string to_string (Value const& value)
|
||||
return FastWriter ().write (value);
|
||||
}
|
||||
|
||||
std::string pretty (Value const& value)
|
||||
{
|
||||
return StyledWriter().write (value);
|
||||
}
|
||||
|
||||
} // namespace Json
|
||||
|
||||
@@ -30,6 +30,9 @@ class Value;
|
||||
/** Writes a Json::Value to an std::string. */
|
||||
std::string to_string (Value const&);
|
||||
|
||||
/** Writes a Json::Value to an std::string. */
|
||||
std::string pretty (Value const&);
|
||||
|
||||
/** Output using the StyledStreamWriter. @see Json::operator>>(). */
|
||||
std::ostream& operator<< (std::ostream&, const Value& root);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user