Hello I try to migrate Jackson to serializer… how ...
# serialization
m
Hello I try to migrate Jackson to serializer… how I work with dates ? my Jackson JSON format looks like :
Copy code
@JsonFormat(pattern = "yyyy-MM-dd")
j
kotlinx-datetime
m
thx. is there any documentation or samples ? @Javier you know. I saw some stuff wit custom serialz. but then I think I stay with jackson:( ;)
j
kotlinx datetime has already serialization support
😎 1
m
have to check it again… thanks again…. but still it send something like
Copy code
linx_datetime":[2018,1,17],"monthNumber":1,"year":2018,"d
                                                           | ayOfMonth":17,"month":"JANUARY","dayOfWeek":"WEDNESDAY","
                                                           | dayOfYear":17}
I am in a SpringBoot Setup and use the the following version
Copy code
<dependency>
   <groupId>org.jetbrains.kotlinx</groupId>
   <artifactId>kotlinx-datetime-jvm</artifactId>
   <version>0.2.1</version>
</dependency>
🙈
mvn clean compile
was the solution