projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add control of floating point serialization to JSON serialization
[folly.git]
/
folly
/
json.cpp
diff --git
a/folly/json.cpp
b/folly/json.cpp
index 3141d1b2006bce870858a5723468707fbf8008e9..24ce2b298f982fb19b7e5d3a360065d1bd3988b6 100644
(file)
--- a/
folly/json.cpp
+++ b/
folly/json.cpp
@@
-131,7
+131,7
@@
struct Printer {
throw std::runtime_error("folly::toJson: JSON object value was a "
"NaN or INF");
}
- toAppend(v.asDouble(), &out_);
+ toAppend(v.asDouble(), &out_
, opts_.double_mode, opts_.double_num_digits
);
break;
case dynamic::INT64: {
auto intval = v.asInt();