package Ġtrace . s 2 . config Ċ Ċ import Ġcom . fasterxml . jackson . annotation . Json Auto Detect Ċ import Ġcom . fasterxml . jackson . annotation . JsonInclude Ċ import Ġcom . fasterxml . jackson . annotation . Property Accessor Ċ import Ġcom . fasterxml . jackson . databind . Deserialization Feature Ċ import Ġcom . fasterxml . jackson . databind . ObjectMapper Ċ import Ġcom . fasterxml . jackson . datatype . js r 3 1 0 . Java Time Module Ċ import Ġcom . fasterxml . jackson . module . kotlin . Kotlin Module Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ Ċ @ Configuration Ċ class ĠJson Config Ġ{ ĊĊ ĉ @ Bean Ċ ĉ fun ĠobjectMapper (): ĠObjectMapper Ġ= Ġ ĠObjectMapper () Ċĉ ĉ . configure ( Deserialization Feature . FAIL _ ON _ UNKNOWN _ PROPERTIES , Ġfalse ) Ċĉ ĉ . set Serialization In clusion ( JsonInclude . Include . NON _ NULL ) Ċĉ ĉ . setVisibility ( Property Accessor . FIELD , ĠJson Auto Detect . Visibility . ANY ) Ċĉ ĉ . register Module ( Kotlin Module ()) Ċĉ ĉ . register Module ( Java Time Module ()) Ċ Ċ }