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] [Updated] (AVRO-1582) Json serialization of nullable fileds improvement.
Date Fri, 12 Sep 2014 13:23:33 GMT

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

Zoltan Farkas updated AVRO-1582:
--------------------------------
    Description: 
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"




  was:
Currently serializing a nullable field (union) 
"type" : ["null","some type"]

when serialized as JSON results in:  

"field":{"some type":2}

when it could be:

"field":"value"




> 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