aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unstable/json.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/unstable/json.cpp b/src/unstable/json.cpp
index d3d8535..f6a8d52 100644
--- a/src/unstable/json.cpp
+++ b/src/unstable/json.cpp
@@ -424,7 +424,11 @@ void Bu::Json::write( Bu::Stream &sOutput ) const
424 break; 424 break;
425 425
426 case Number: 426 case Number:
427 sOutput.write(Bu::String("%1").arg( uDat.dNumber )); 427 {
428 char buf[64];
429 sprintf( buf, "%f", uDat.dNumber );
430 sOutput.write( buf );
431 }
428 break; 432 break;
429 433
430 case Boolean: 434 case Boolean: