Kotlin serialization provides APIs for working with JVM streams and kotlinx-io or Okio sources and sinks.