Hey ya'll, I am trying to implement serialization of a simple data class using the MongoDb kotlin driver, with the
bson-kotlinx
build in serializers, but keep running into issues. The last issue that I couldn't overcome before I resorted to trying other methods was that a
StreamingJsonEncoder
was being chosen to encode the class
ObjectId
identifier, causing the
ObjectIdSerializer
to fail. Has anyone successfully implemented this? Is my issue that I am using the same data class for both the request and reponse?
Thread in Slack Conversation
Haley Cunningham
10/08/2024, 11:50 PM
Ok, so update on this. This definitely has something to do with content negotiation. Everything is serialized correctly between MongoDb and the server, but when calling