Hi Matt,
Thanks, this is exactly what I was wondering about. Modifying the
underlying type of bson.ObjectId doesn't seem like being a casual
operation, so let's not count on that on the incoming days !
Merry Christmas and happy end of 2016 :D
Le vendredi 23 décembre 2016 19:54:15 UTC+1, Matt H
Because the underlying type of bson.ObjectID is string, the map marshaller
uses the underlying string (coerced to valid utf-8) as the JSON map key
directly. In the case of ObjectID that's a bad thing because many ObjectIDs
contain bytes that are not valid utf-8 and get replaced with the unicode
rep