什么是 Jackson ? https://github.com/FasterXML/jackson
Kotlin 插件 jackson-module-kotlin https://github.com/FasterXML/jackson-module-kotlin
Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
该模块增加了对Kotlin(http://kotlinlang.org)类和数据类的序列化/反序列化的支持。
Add-on module for Jackson (https://github.com/FasterXML/jackson/) to support Kotlin language, specifically introspection of method/construct
or parameter names, without having to add explicit property name annotation.
Jackson的附加模块(https://github.com/FasterXML/jackson/),用于支持Kotlin语言,特别是方法/构造函数参数名称的自省,而无需添加显式的属性名称
注释。
Module that adds support for serialization/deserialization of Kotlin classes and data classes. Previously a default constructor must have ex
isted on the Kotlin object for Jackson to deserialize into the object. With this module, single constructor classes can be used automaticall
y, and those with secondary constructors or static factories are also supported.
该模块增加了对Kotlin类和数据类的序列化/反序列化的支持。以前,必须在Kotlin对象上存在默认构造函数,以便Jackson可以反序列化到该对象中。使用此模
块,可以自动使用单个构造函数类,还支持具有辅助构造函数或静态工厂的类。