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

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

Would renaming the encoder/decoders to StdJson... work?
Base64 sounds like a good idea for encoding binary in json, should not be hard 
to implement...
Regarding the default value, the correct way to decode it in my opinion is to 
use the writer schema to infer it. (which is what this implementation does)
About the default value enc/dec implementation, my implementation works(use it 
quite a few apps), but It is a bit hacky to say at least... i would be 
interested in me feedback there...
Agree with documentation, I will also push out some unit tests as well.
We could also improve encoding/decoding BigDecimals as well..


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

Reply via email to