This repository has been archived by the owner on Nov 28, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Json4sCodec deserializer expects an object to deserialize joda DateTime from #14
Comments
do your formats include the joda time formats? This error suggests they don't |
what's the source of DateTime? Is that the joda time one? |
I'm sorry, notification for the first message wound up in spam.
|
Similar thing happens with Java Date, only in this case the deserializer expects a JString and fails when it gets anything else. |
What are the fully qualified class names of formats you are referring to? |
that was me being confused. I thought this was in the json4s repo not muster |
I have put together a project to illustrate the issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Standalone DateTime value is serialized to string using a custom producer and deserialized back using a custom consumer just fine. However, when DateTime value is part of a case class, it is serialized to string, but fails to deserialize (causing the whole case class deserialization to fail) with a message:
where timestamp is the name of the DateTime field.
The text was updated successfully, but these errors were encountered: