-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: API
-
None
the JSON serializer (used in most outputs) writes Number / NumberInt / NumberLong as just a regular number.
The JSON deserializer tries to be smart and either uses a Number or a NumberInt based on how large it is.
The behavior should be equivalent to the shell or mongoexport / import.
At the minimum it should encode NumberLong as
so that it can be round tripped.
- related to
-
SERVER-5424 Shell doesn't re-save retrieved integers in an array as integers (converted to 64-bit float)
- Backlog