I noticed that Spring only had built in support for Kotlin Serializations to/from JSON, but that the existing implementation for Kotlin Serialization of JSON was mostly sufficient for a more general implementation.

With a few modifications Spring gains support for Kotlin Serialization to CBOR and Protocol Buffers AND the ability to manually configure other Kotlin Serialization types.

Comment From: pivotal-cla

@iain-henderson Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@iain-henderson Thank you for signing the Contributor License Agreement!

Comment From: iain-henderson

Conflicts are caused by using constants for MediaTypes. With more input from the project owners, I'm willing to fix it.

Comment From: poutsma

Thank you for submitting a PR, @iain-henderson. After making some changes, I have merged it in https://github.com/spring-projects/spring-framework/commit/b8243e6f840d974de51d69b8279631b0cd50f3f0.