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

Zoltan Farkas commented on AVRO-3210:
-------------------------------------

This issue is basically a duplicate of AVRO-1582

I have been using a [custom json 
encoder/decoder|https://github.com/zolyfarkas/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/io/ExtendedJsonDecoder.java]
 for this. I think somebody with time on their hand should should add a new 
json enc/dec...

> how the Avro Schema with Union type can accept the ‘normal JSON’ 
> -----------------------------------------------------------------
>
>                 Key: AVRO-3210
>                 URL: https://issues.apache.org/jira/browse/AVRO-3210
>             Project: Apache Avro
>          Issue Type: Improvement
>            Reporter: Ning Chang
>            Priority: Major
>         Attachments: test2.avsc
>
>
> how the Avro Schema with Union type can accept the ‘normal JSON’
> Avro Schema; 
>                         {
>                             "name": "middle_name",
>                             "type": [
>                                 "null",
>                                 "string"
>                             ],
>                             "default": null
>                         }
>  
> how to accept the Normal json payload like:   "middle_name": "chang" ,  not 
> the one:  
>             "middle_name": {
>                 "string": "chang"
>             }
> Thanks In advance.
>   



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to