aboutsummaryrefslogtreecommitdiff
path: root/src/tests/json.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/json.cpp')
-rw-r--r--src/tests/json.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/json.cpp b/src/tests/json.cpp
index 6490d8d..6ec92f0 100644
--- a/src/tests/json.cpp
+++ b/src/tests/json.cpp
@@ -7,6 +7,12 @@ int main( int argc, char *argv[] )
7{ 7{
8 Bu::Json j( "\x01" "ACTION" "\x01" ); 8 Bu::Json j( "\x01" "ACTION" "\x01" );
9 Bu::println( j.toString() ); 9 Bu::println( j.toString() );
10
11 Bu::Json ob( Bu::Json::Object );
12 ob.insert("hello", 47.0 );
13 const Bu::Json &obRef = ob;
14 Bu::println("%1").arg( obRef["hello"] );
15
10 return 0; 16 return 0;
11} 17}
12 18