diff options
author | Mike Buland <mbuland@penny-arcade.com> | 2018-01-24 15:17:16 -0800 |
---|---|---|
committer | Mike Buland <mbuland@penny-arcade.com> | 2018-01-24 15:17:16 -0800 |
commit | 65ffc3b58ca865a7f83bf39290df1760c35b57f0 (patch) | |
tree | 67f2f278c31d932edbec1d09b5039dd878dbc93c /src | |
parent | 3597d3c36125f6181d37db48f3be3902ab50c123 (diff) | |
download | libbu++-65ffc3b58ca865a7f83bf39290df1760c35b57f0.tar.gz libbu++-65ffc3b58ca865a7f83bf39290df1760c35b57f0.tar.bz2 libbu++-65ffc3b58ca865a7f83bf39290df1760c35b57f0.tar.xz libbu++-65ffc3b58ca865a7f83bf39290df1760c35b57f0.zip |
Json stuff
Diffstat (limited to '')
-rw-r--r-- | src/unstable/json.cpp | 5 | ||||
-rw-r--r-- | src/unstable/json.h | 1 |
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 | ||
163 | Bu::StringList Bu::Json::getKeys() const | ||
164 | { | ||
165 | return uDat.pObject->getKeys(); | ||
166 | } | ||
167 | |||
163 | Bu::Json::iterator Bu::Json::begin() | 168 | Bu::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(); |