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-6377 bson_as_relaxed_extended_json and bson_as_canonical_extended_json emit commas instead of dots for doubles under decimal-comma locales (e.g., pt_BR.UTF-8), violating RFC 8259 Section 6.
-
- Backlog
-
-
CDRIVER-3938 Rounding errors in double type in bson_as_relaxed_extended_json() function
-
- Closed
-