-
Notifications
You must be signed in to change notification settings - Fork 36
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
Failed to convert serialized Instant to JSON #405
Comments
jabolina
added a commit
to jabolina/protostream
that referenced
this issue
Jan 27, 2025
* Instant and Date objects not handled during JSON conversion. * Additionally, these objects try to convert as primitive types. This loses all the type context for the conversion back from JSON. * Require adapters from the types module to perform the conversion to JSON.
jabolina
added a commit
to jabolina/protostream
that referenced
this issue
Jan 27, 2025
* Instant and Date objects not handled during JSON conversion. * Additionally, these objects try to convert as primitive types. This loses all the type context for the conversion back from JSON. * Require adapters from the types module to perform the conversion to JSON.
jabolina
added a commit
to jabolina/protostream
that referenced
this issue
Feb 14, 2025
* Instant and Date objects not handled during JSON conversion. * Additionally, these objects try to convert as primitive types. This loses all the type context for the conversion back from JSON. * Require adapters from the types module to perform the conversion to JSON. * Updates JSON serialization to support nested types in lists and wrapped messages.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can serialize a
java.time.Instant
through theWrappedMessage
, where it writes an int64 and int32:protostream/core/src/main/java/org/infinispan/protostream/WrappedMessage.java
Lines 293 to 298 in 8d20c39
However, the conversion to JSON fails, resulting in an empty String. I see other (primitive) types work out of the box. A simple reproducer:
I've run this from the
ProtobufUtilTest
class.The text was updated successfully, but these errors were encountered: