Mario Andhika
08/02/2023, 11:12 AMinstall(ContentNegotiation) {
json(Json {
namingStrategy = JsonNamingStrategy.SnakeCase
}
}
I installed this and it works for deserializing snake case JSON data from responses to data classes. But it doesn’t serialize request parameters as shown below from camel case to snake case.
@Resource("resetpassword")
class ResetPasswordRequest(val emailAddress: String)
How do I serialize these parameters from camel case to snake case?