diff options
Diffstat (limited to 'src/unstable/json.cpp')
| -rw-r--r-- | src/unstable/json.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/unstable/json.cpp b/src/unstable/json.cpp index 65bd195..0903499 100644 --- a/src/unstable/json.cpp +++ b/src/unstable/json.cpp | |||
| @@ -245,6 +245,11 @@ Bu::Json &Bu::Json::insertArray( const Bu::String &sKey ) | |||
| 245 | return *pAr; | 245 | return *pAr; |
| 246 | } | 246 | } |
| 247 | 247 | ||
| 248 | Bu::Json &Bu::Json::insertNull( const Bu::String &sKey ) | ||
| 249 | { | ||
| 250 | uDat.pObject->insert( sKey, new Json( Null ) ); | ||
| 251 | } | ||
| 252 | |||
| 248 | Bu::Json &Bu::Json::append( Bu::Json *pObj ) | 253 | Bu::Json &Bu::Json::append( Bu::Json *pObj ) |
| 249 | { | 254 | { |
| 250 | uDat.pArray->append( pObj ); | 255 | uDat.pArray->append( pObj ); |
| @@ -291,6 +296,11 @@ Bu::Json &Bu::Json::appendArray() | |||
| 291 | return *pAr; | 296 | return *pAr; |
| 292 | } | 297 | } |
| 293 | 298 | ||
| 299 | Bu::Json &Bu::Json::appendNull() | ||
| 300 | { | ||
| 301 | uDat.pArray->append( new Json( Null ) ); | ||
| 302 | } | ||
| 303 | |||
| 294 | void Bu::Json::parse( Bu::Stream &sInput ) | 304 | void Bu::Json::parse( Bu::Stream &sInput ) |
| 295 | { | 305 | { |
| 296 | reset(); | 306 | reset(); |
