aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2018-01-24 15:17:16 -0800
committerMike Buland <mbuland@penny-arcade.com>2018-01-24 15:17:16 -0800
commit65ffc3b58ca865a7f83bf39290df1760c35b57f0 (patch)
tree67f2f278c31d932edbec1d09b5039dd878dbc93c
parent3597d3c36125f6181d37db48f3be3902ab50c123 (diff)
downloadlibbu++-65ffc3b58ca865a7f83bf39290df1760c35b57f0.tar.gz
libbu++-65ffc3b58ca865a7f83bf39290df1760c35b57f0.tar.bz2
libbu++-65ffc3b58ca865a7f83bf39290df1760c35b57f0.tar.xz
libbu++-65ffc3b58ca865a7f83bf39290df1760c35b57f0.zip
Json stuff
-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 cdc2a30..273d5d3 100644
--- a/src/unstable/json.cpp
+++ b/src/unstable/json.cpp
@@ -160,6 +160,11 @@ int Bu::Json::getSize() const
160 ); 160 );
161} 161}
162 162
163Bu::StringList Bu::Json::getKeys() const
164{
165 return uDat.pObject->getKeys();
166}
167
163Bu::Json::iterator Bu::Json::begin() 168Bu::Json::iterator Bu::Json::begin()
164{ 169{
165 return uDat.pArray->begin(); 170 return uDat.pArray->begin();
diff --git a/src/unstable/json.h b/src/unstable/json.h
index 217a69a..336f1fd 100644
--- a/src/unstable/json.h
+++ b/src/unstable/json.h
@@ -51,6 +51,7 @@ namespace Bu
51 Json &operator[]( const Bu::String &sKey ) const; 51 Json &operator[]( const Bu::String &sKey ) const;
52 Json &operator[]( int iIndex ) const; 52 Json &operator[]( int iIndex ) const;
53 int getSize() const; 53 int getSize() const;
54 Bu::StringList getKeys() const;
54 iterator begin(); 55 iterator begin();
55 const_iterator begin() const; 56 const_iterator begin() const;
56 iterator end(); 57 iterator end();