Upgrading to 0.4.0 -- in 0.3.0 I used to do this: ...
# ktor
r
Upgrading to 0.4.0 -- in 0.3.0 I used to do this:
Copy code
// outbound JSON interceptor, ktor does not support inbound json interception (yet)
    intercept(ApplicationCallPipeline.Infrastructure) { call ->
      call.transform.register<Something> { value ->
        TextContent(objectMapper.writeValueAsString(value), ContentType.Application.Json)
      }
    }