Adaptive serialization: doubles #1618
Labels
Enhancement
A change or improvement to an existing feature
Serialization
An issue related to the Serialization spec
We should make the serialization spec more liberal when it comes to the representation of double values. The prescribed output format is
format-number(?, '0.0##########################e0')
, which is very strict and often confusing when maps and arrays are serialized. Maps resulting from JSON conversions often contain doubles without users noticing it (related: #1583).We should make the behavior implementation-dependent or align it with the serialization of JSON data (without losing its additional features to e.g. serialize function items or sequences). Backward compliance shouldn’t be an important issue, as the method was mainly introduced for debugging purposes.
The text was updated successfully, but these errors were encountered: