reactivemongo.play.json.compat
Conversion API from BSON to JSON values
See toValue
If the number:
- is not whole then it's converted to BSON double, - is a valid integer then it's converted to a BSON integer (int32), - otherwise it's converted to a BSON long integer (int64).
Conversion API from BSON to JSON values