Many of the bson_as_json visitor functions delegate the work of converting a non-string value to a string to printf (by way of bson_string_append_printf). In certain locales, printf can return strings where a number with a floating point uses a comma instead of a period:
{ "value" : { "$numberDouble" : "1,1000000000000000888" } }
JSON does not accept comma separators in numeric types, only decimal point separators.
- duplicates
-
CXX-2016 Invalid json value returned
- Closed
- is duplicated by
-
CDRIVER-3938 Rounding errors in double type in bson_as_relaxed_extended_json() function
- Closed
- related to
-
CDRIVER-3938 Rounding errors in double type in bson_as_relaxed_extended_json() function
- Closed