avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Farkas (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1582) Json serialization of nullable fileds improvement.
Date Sun, 14 Dec 2014 12:37:13 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14245903#comment-14245903
] 

Zoltan Farkas commented on AVRO-1582:
-------------------------------------

Ryan, we don't have to change the current Json format, I have created another set of encoders/decoders
that implement what I suggesting. (They extend the current ones, 
so that I can read/write both formats) I think there might be some interest in this functionality,
AVRO-1618 seems to be somewhat related.

> Json serialization of nullable fileds improvement.
> --------------------------------------------------
>
>                 Key: AVRO-1582
>                 URL: https://issues.apache.org/jira/browse/AVRO-1582
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.8.0
>            Reporter: Zoltan Farkas
>            Priority: Minor
>         Attachments: AVRO-1582-PATCH
>
>
> Currently serializing a nullable field of type union like:
> "type" : ["null","some type"]
> when serialized as JSON results in:  
> "field":{"some type":"value"}
> when it could be:
> "field":"value"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message