bson and json mappers