Bytearrayoutputstream to streamingresponsebody. You can do that manually (as you suggest) using the String.

Bytearrayoutputstream to streamingresponsebody. Using raw Jackson without the Jackson-Kotlin module:.