From 65ffc3b58ca865a7f83bf39290df1760c35b57f0 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 24 Jan 2018 15:17:16 -0800 Subject: Json stuff --- src/unstable/json.cpp | 5 +++++ src/unstable/json.h | 1 + 2 files changed, 6 insertions(+) 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 ); } +Bu::StringList Bu::Json::getKeys() const +{ + return uDat.pObject->getKeys(); +} + Bu::Json::iterator Bu::Json::begin() { 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 Json &operator[]( const Bu::String &sKey ) const; Json &operator[]( int iIndex ) const; int getSize() const; + Bu::StringList getKeys() const; iterator begin(); const_iterator begin() const; iterator end(); -- cgit v1.2.3