aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/json.cpp
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2019-06-12 17:12:15 -0700
committerMike Buland <mbuland@penny-arcade.com>2019-06-12 17:12:15 -0700
commit889cf794108dc1a8c4d2c50fc864846799f512e1 (patch)
tree0bcaaa64c9289cc48f55f9f1daa7f64ca5c8c45a /src/unstable/json.cpp
parentca3f5b64d656a86ea411572737be7facd067fd62 (diff)
downloadlibbu++-889cf794108dc1a8c4d2c50fc864846799f512e1.tar.gz
libbu++-889cf794108dc1a8c4d2c50fc864846799f512e1.tar.bz2
libbu++-889cf794108dc1a8c4d2c50fc864846799f512e1.tar.xz
libbu++-889cf794108dc1a8c4d2c50fc864846799f512e1.zip
Json objects can be formatted directly.
Diffstat (limited to '')
-rw-r--r--src/unstable/json.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unstable/json.cpp b/src/unstable/json.cpp
index 8c766dd..7e6387b 100644
--- a/src/unstable/json.cpp
+++ b/src/unstable/json.cpp
@@ -832,3 +832,9 @@ void Bu::Json::writeStr( const Bu::UtfString &sStr, Bu::Stream &sOutput ) const
832 sOutput.write("\"", 1 ); 832 sOutput.write("\"", 1 );
833} 833}
834 834
835Bu::Formatter &Bu::operator<<( Bu::Formatter &f, const Bu::Json &j )
836{
837 f.write( j.toString() );
838 return f;
839}
840