aboutsummaryrefslogtreecommitdiff
path: root/src/unstable
diff options
context:
space:
mode:
Diffstat (limited to 'src/unstable')
-rw-r--r--src/unstable/json.cpp5
-rw-r--r--src/unstable/json.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/unstable/json.cpp b/src/unstable/json.cpp
index b22ca0d..7e19e85 100644
--- a/src/unstable/json.cpp
+++ b/src/unstable/json.cpp
@@ -170,6 +170,11 @@ void Bu::Json::insert( const Bu::String &sKey, Bu::Json *pObj )
170 uDat.pObject->insert( sKey, pObj ); 170 uDat.pObject->insert( sKey, pObj );
171} 171}
172 172
173void Bu::Json::append( Bu::Json *pObj )
174{
175 uDat.pArray->append( pObj );
176}
177
173void Bu::Json::parse( Bu::Stream &sInput ) 178void Bu::Json::parse( Bu::Stream &sInput )
174{ 179{
175 reset(); 180 reset();
diff --git a/src/unstable/json.h b/src/unstable/json.h
index 6042f7d..1dad055 100644
--- a/src/unstable/json.h
+++ b/src/unstable/json.h
@@ -53,6 +53,7 @@ namespace Bu
53 const_iterator end() const; 53 const_iterator end() const;
54 54
55 void insert( const Bu::String &sKey, Bu::Json *pObj ); 55 void insert( const Bu::String &sKey, Bu::Json *pObj );
56 void append( Bu::Json *pObj );
56 57
57 void parse( Bu::Stream &sInput ); 58 void parse( Bu::Stream &sInput );
58 void parse( const Bu::String &sInput ); 59 void parse( const Bu::String &sInput );