You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Zoltan Farkas (JIRA)" <ji...@apache.org> on 2014/12/05 16:18:22 UTC

[jira] [Commented] (AVRO-1582) Json serialization of nullable fileds improvement.

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

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

I have created Encoder/Decoder that extends current Json encoders/Decoders that does this optimization for the union {null, type} case, and also an optimization to omit at serialization time the fields that are equal with the default value, and infer them at deserialization time from the schema....

Any interest in these being included as an Extended Json format into the library?

let me know, thank you

> 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)