Hi,

I am trying to convert a POJO which is set with data to JSON in java.
While converting I get data as 
"lastName": {
                    "string": "XYZ"
                }
This happens when we use the following snippet of the schema.
"name": "lastName",
"type": ["string", "null"],

But it works fine when we use below schema
"name": "lastName",
"type": ["string", "null"],
And produces result as :- lastName":  "XYZ"

But we need to make the schema such that it should work properly even if
lastName comes as null.

Please help us so that we can resolve the union issue of [“string”:”null”]

Thanks,
Amrish




--
Sent from: http://apache-avro.679487.n3.nabble.com/Avro-Users-f679479.html

Reply via email to