[
https://issues.apache.org/jira/browse/AVRO-3124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17337401#comment-17337401
]
Ryan Skraba commented on AVRO-3124:
-----------------------------------
I've merged your PR, and this will be fixed in 1.11.0 – thanks for the
contribution. At least these valid (and common) records won't produce invalid
JSON, which is really an unpleasant stumbling block!
> Java: toString serializer produces incorrect JSON fields for Temporal logical
> types
> -----------------------------------------------------------------------------------
>
> Key: AVRO-3124
> URL: https://issues.apache.org/jira/browse/AVRO-3124
> Project: Apache Avro
> Issue Type: Bug
> Components: java
> Reporter: Artur Kalimullin
> Assignee: Artur Kalimullin
> Priority: Major
> Fix For: 1.11.0
>
>
> When the java class has been generated using one of the Temporal logical
> types and then converted to JSON using toString(), the output field does is
> not a proper string:
>
> {code:java}
> "operationTime": 2021-04-29T04:01:57.465Z
> {code}
> This is an ISO-8601 compliant string, so it should be treated as a string:
>
> {code:java}
> "operationTime": "2021-04-29T04:01:57.465Z"
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)