Take care of toJSON BSON business