From 33d08f7b68ee57824c135c927bf86ca5fa3444cb Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 11 Mar 2019 11:25:32 -0700 Subject: Json parsing fix + new API for copying. --- src/unstable/json.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/unstable/json.h') diff --git a/src/unstable/json.h b/src/unstable/json.h index 336f1fd..4c85dd9 100644 --- a/src/unstable/json.h +++ b/src/unstable/json.h @@ -41,6 +41,7 @@ namespace Bu Json( bool bValue ); Json( Type eType ); Json( Bu::Stream &sInput ); + Json( const Json &rSrc ); virtual ~Json(); Type getType() const; @@ -59,6 +60,7 @@ namespace Bu bool has( const Bu::String &sKey ) const; void insert( const Bu::String &sKey, Bu::Json *pObj ); + void insert( const Bu::String &sKey, const Bu::Json &rObj ); void insert( const Bu::String &sKey, const Bu::String &sValue ); void insert( const Bu::String &sKey, const char *sValue ); void insert( const Bu::String &sKey, double dValue ); @@ -82,6 +84,8 @@ namespace Bu Bu::String toString() const; Bu::String toStringStable() const; + Bu::Json &operator=( const Bu::Json &rSrc ); + private: void parse( char &c, Bu::Stream &sInput ); void parseString( char &c, Bu::Stream &sInput, Bu::String &sOut ); -- cgit v1.2.3