Closed mirage007 closed 6 years ago
Given that bson can serialize floats, i was expecting float keys as valid, but it seems they are converted to strings on serialization, is that expected behavior or a bug?
>>> from bson import loads, dumps >>> loads(dumps({1.2: 3})) {'1.2': 3}
Key in bson should be string. Thanks.
Given that bson can serialize floats, i was expecting float keys as valid, but it seems they are converted to strings on serialization, is that expected behavior or a bug?