aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/json.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/unstable/json.cpp')
-rw-r--r--src/unstable/json.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/unstable/json.cpp b/src/unstable/json.cpp
index 65bd195..0903499 100644
--- a/src/unstable/json.cpp
+++ b/src/unstable/json.cpp
@@ -245,6 +245,11 @@ Bu::Json &Bu::Json::insertArray( const Bu::String &sKey )
245 return *pAr; 245 return *pAr;
246} 246}
247 247
248Bu::Json &Bu::Json::insertNull( const Bu::String &sKey )
249{
250 uDat.pObject->insert( sKey, new Json( Null ) );
251}
252
248Bu::Json &Bu::Json::append( Bu::Json *pObj ) 253Bu::Json &Bu::Json::append( Bu::Json *pObj )
249{ 254{
250 uDat.pArray->append( pObj ); 255 uDat.pArray->append( pObj );
@@ -291,6 +296,11 @@ Bu::Json &Bu::Json::appendArray()
291 return *pAr; 296 return *pAr;
292} 297}
293 298
299Bu::Json &Bu::Json::appendNull()
300{
301 uDat.pArray->append( new Json( Null ) );
302}
303
294void Bu::Json::parse( Bu::Stream &sInput ) 304void Bu::Json::parse( Bu::Stream &sInput )
295{ 305{
296 reset(); 306 reset();