Johann Pardanaud
10/01/2024, 9:37 PMcall.respond(Json.encodeToString(bodyClass))
.
However the user has no way to choose another format like XML.
Or should I encourage my users to configure the Content Negotiation plugin to serialize the class?
Then I would write something like call.respond(bodyClass)
and serialization will be automatically handled.
However, this code will fail if the Content Negociation plugin isn't configured.Aleksei Tirman [JB]
10/02/2024, 7:49 AMContentNegotiation
plugin to evade implementing serialization configuration.Johann Pardanaud
10/02/2024, 7:53 AM