aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/json.h
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2022-10-03 10:05:55 -0700
committerMike Buland <mbuland@penny-arcade.com>2022-10-03 10:05:55 -0700
commitdf1ece4814c709e9f0bf6354c241a0cd7cb09507 (patch)
treea8d8b275c31278ff25150698db508e9e29f405ea /src/unstable/json.h
parentfbcbfceb7fe95b974a4bbe46a1726034edde3946 (diff)
downloadlibbu++-df1ece4814c709e9f0bf6354c241a0cd7cb09507.tar.gz
libbu++-df1ece4814c709e9f0bf6354c241a0cd7cb09507.tar.bz2
libbu++-df1ece4814c709e9f0bf6354c241a0cd7cb09507.tar.xz
libbu++-df1ece4814c709e9f0bf6354c241a0cd7cb09507.zip
Added insertNull and appendNull to Bu::Json.
Just helpers to make using json easier and easier.
Diffstat (limited to '')
-rw-r--r--src/unstable/json.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unstable/json.h b/src/unstable/json.h
index a973f74..14cb572 100644
--- a/src/unstable/json.h
+++ b/src/unstable/json.h
@@ -84,6 +84,7 @@ namespace Bu
84 Json &insert( const Bu::String &sKey, bool bValue ); 84 Json &insert( const Bu::String &sKey, bool bValue );
85 Json &insertObject( const Bu::String &sKey ); 85 Json &insertObject( const Bu::String &sKey );
86 Json &insertArray( const Bu::String &sKey ); 86 Json &insertArray( const Bu::String &sKey );
87 Json &insertNull( const Bu::String &sKey );
87 Json &append( Bu::Json *pObj ); 88 Json &append( Bu::Json *pObj );
88 Json &append( const Bu::String &sValue ); 89 Json &append( const Bu::String &sValue );
89 Json &append( const char *sValue ); 90 Json &append( const char *sValue );
@@ -91,6 +92,7 @@ namespace Bu
91 Json &append( bool bValue ); 92 Json &append( bool bValue );
92 Json &appendObject(); 93 Json &appendObject();
93 Json &appendArray(); 94 Json &appendArray();
95 Json &appendNull();
94 96
95 void parse( Bu::Stream &sInput ); 97 void parse( Bu::Stream &sInput );
96 void parse( const Bu::String &sInput ); 98 void parse( const Bu::String &sInput );