summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 7e19e85..5f6165c 100644
--- a/src/unstable/json.cpp
+++ b/src/unstable/json.cpp
@@ -165,6 +165,11 @@ Bu::Json::const_iterator Bu::Json::end() const
165 return uDat.pArray->end(); 165 return uDat.pArray->end();
166} 166}
167 167
168bool Bu::Json::has( const Bu::String &sKey ) const
169{
170 return uDat.pObject->has( sKey );
171}
172
168void Bu::Json::insert( const Bu::String &sKey, Bu::Json *pObj ) 173void Bu::Json::insert( const Bu::String &sKey, Bu::Json *pObj )
169{ 174{
170 uDat.pObject->insert( sKey, pObj ); 175 uDat.pObject->insert( sKey, pObj );
diff --git a/src/unstable/json.h b/src/unstable/json.h
index 1dad055..7ac6f51 100644
--- a/src/unstable/json.h
+++ b/src/unstable/json.h
@@ -52,6 +52,7 @@ namespace Bu
52 iterator end(); 52 iterator end();
53 const_iterator end() const; 53 const_iterator end() const;
54 54
55 bool has( const Bu::String &sKey ) const;
55 void insert( const Bu::String &sKey, Bu::Json *pObj ); 56 void insert( const Bu::String &sKey, Bu::Json *pObj );
56 void append( Bu::Json *pObj ); 57 void append( Bu::Json *pObj );
57 58