Kotlin: Jackson deserialization of inline classes

时间:2019-05-31 11:52:03

标签: class exception kotlin jackson inline

Lets say i have

inline class CustomId(val id: String)

And i use Jackson to deserialize it back to a object, Jackson throws an Exception:

InvalidDefinitionException
Cannot construct instance of CustomId (no Creators, like default construct, exist)

How to solve this Problem?
How can I create a custom deserializer?

0 个答案:

没有答案