[JAVA-832] NumberLong is not properly round tripped by the JSON serializer / deserializer Created: 20/May/13 Updated: 04/Dec/13 Resolved: 04/Dec/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Antoine Girbal | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
the JSON serializer (used in most outputs) writes Number / NumberInt / NumberLong as just a regular number. so that it can be round tripped. |
| Comments |
| Comment by Antoine Girbal [ 04/Dec/13 ] | |||||||||
|
I have added a comment at | |||||||||
| Comment by Jeffrey Yemin [ 04/Dec/13 ] | |||||||||
|
Please re-open if you have more information. | |||||||||
| Comment by Jeffrey Yemin [ 21/May/13 ] | |||||||||
|
What have you tried that doesn't work? Much of the JSON serialization was re-implemented in the past year. | |||||||||
| Comment by Antoine Girbal [ 21/May/13 ] | |||||||||
|
Overall the driver does not abide by the rules here: Anyway I just looked at JSON.parse() code and it detects double vs int vs long, so at least data will not be lost there. | |||||||||
| Comment by Jeffrey Yemin [ 20/May/13 ] | |||||||||
|
Furthermore, this is what mongoexport does:
| |||||||||
| Comment by Jeffrey Yemin [ 20/May/13 ] | |||||||||
|
There is no $long syntax defined in http://docs.mongodb.org/manual/reference/mongodb-extended-json/. |