You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ryan Skraba (Jira)" <ji...@apache.org> on 2021/04/30 13:48:00 UTC

[jira] [Resolved] (AVRO-2343) Invalid json string caused by logic timestamp millis

     [ https://issues.apache.org/jira/browse/AVRO-2343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan Skraba resolved AVRO-2343.
-------------------------------
    Resolution: Duplicate

> Invalid json string caused by logic timestamp millis
> ----------------------------------------------------
>
>                 Key: AVRO-2343
>                 URL: https://issues.apache.org/jira/browse/AVRO-2343
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.8.1, 1.8.2
>            Reporter: 富恒
>            Priority: Major
>
> I am trying to use timestamp millis. The generated java code cannot be converted to an invalid json message, because the ISO timestamp is not correctly quoted.
> It will generate json, where the value is invalid, like:
> {"timestamp": 2019-03-09T21:45:39.594-08:00}
> instead of
> {"timestamp": "2019-03-09T21:45:39.594-08:00"}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)