You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Fuheng Wu (JIRA)" <ji...@apache.org> on 2019/03/10 17:37:00 UTC

[jira] [Updated] (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 ]

Fuheng Wu updated AVRO-2343:
----------------------------
    Description: 
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"}

  was: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.


> 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: Fuheng Wu
>            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
(v7.6.3#76005)