package Ġno . nav . mel dep li kt . mel dek ort service . utils Ċ Ċ import Ġcom . fasterxml . jackson . core . Json Generator Ċ import Ġcom . fasterxml . jackson . core . Json Parser Ċ import Ġcom . fasterxml . jackson . core . Json Processing Exception Ċ import Ġcom . fasterxml . jackson . databind . Deserialization Context Ċ import Ġcom . fasterxml . jackson . databind . Serializer Provider Ċ import Ġcom . fasterxml . jackson . databind . de ser . std . Std Deserializer Ċ import Ġcom . fasterxml . jackson . databind . ser . std . Std Serializer Ċ import Ġjava . io . IOException Ċ import Ġjava . time . LocalDate Ċ import Ġjava . time . format . DateTime Formatter Ċ Ċ class ĠLocalDate Deserializer : ĠStd Deserializer < LocalDate >( LocalDate :: class . java ) Ġ{ ĊĊĠĠĠ Ġ@ Throws ( IOException :: class , ĠJson Processing Exception :: class ) ĊĠĠĠ Ġoverride Ġfun Ġdeserialize ( jp : ĠJson Parser , Ġctxt : ĠDeserial ization Context ): ĠLocalDate Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠLocalDate . parse ( jp . readValue As ( String :: class . java )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval ĠserialVersionUID Ġ= Ġ 1 L ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠLocalDate Serializer Ġ: ĠStd Serializer < LocalDate >( LocalDate :: class . java ) Ġ{ ĊĊĠĠĠ Ġ@ Throws ( IOException :: class , ĠJson Processing Exception :: class ) ĊĠĠĠ Ġoverride Ġfun Ġserialize ( value : ĠLocalDate , Ġgen : ĠJson Generator , Ġsp : ĠSerializer Provider ) Ġ{ ĊĠĠĠĠĠĠĠ Ġgen . writeString ( value . format ( DateTime Formatter . ISO _ LOCAL _ DATE )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval ĠserialVersionUID Ġ= Ġ 1 L ĊĠĠĠ Ġ} Ċ }