Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Serialize Java 8 LocalDateTime fields. #271

Closed
wpoosanguansit opened this issue Jul 22, 2015 · 3 comments
Closed

Unable to Serialize Java 8 LocalDateTime fields. #271

wpoosanguansit opened this issue Jul 22, 2015 · 3 comments

Comments

@wpoosanguansit
Copy link

I have imported JavaTimeSerializers I found https://github.com/DanielaSfregola/json4s/blob/3.3/ext/src/main/scala/org/json4s/ext/JavaTimeSerializers.scala

However, the date fields are still not being rendered at all. How do we serialize and deserialize Java 8 LocalDateTime? Thanks for your help.

@seratch
Copy link
Member

seratch commented Aug 30, 2015

Built-in serializer/deserializer doesn't support Java8 Date and Time API yet. See this PR #243 and you can put them into your project. They should work.

@seratch seratch added this to the 3.4 milestone Aug 30, 2015
@wpoosanguansit
Copy link
Author

Thanks for your help. I saw that and had it in my project. For some reasons, it did not work. I am not quite sure why. So I had to do it manually for now. Thanks again.

On Aug 29, 2015, at 8:05 PM, Kazuhiro Sera notifications@github.com wrote:

Built-in serializer/deserializer doesn't support Java8 Date and Time API yet. See this PR #243 and you can put them into your project. They should work.


Reply to this email directly or view it on GitHub.

@tcrossland
Copy link

Does 3.4 implement support for java.time._ date/time types? I can't find any commit which implements this. Should the ticket be reopened?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants