Example of using Kotlin serialization with Spring 5.3
See the post.
To test polymorphism, send POST requests to localhost:8080/polymorphic
with body as shown below.
{
"extra": 1,
"base": {
"type": "io.vividcode.kotlinserializationexample.Child1",
"name": "hello",
"v1": "xyz"
}
}