[
https://issues.apache.org/jira/browse/AVRO-1582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14236341#comment-14236341
]
Ryan Blue commented on AVRO-1582:
---------------------------------
I don't think we should change the JSON format. This would require updating all
of the implementations' readers and I don't see much benefit to the feature
other than JSON that is a bit easier to read -- size isn't a concern because
there is a binary encoding option and this is cheap when compressed.
> 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)