avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: JsonEncoder and unions
Date Thu, 28 Jul 2011 16:36:49 GMT
On 07/28/2011 02:06 AM, Giancarlo Frison wrote:
> I need to set fields as nullable. In order to accomplish this, I
> registered such fields as union(string,null).
> when I encode objects through json encoder the output generated is
> "field":{"string":"blablabla"}
> Is there a config property or a way to encode as "field":"blablabla"?

This is not currently possible.  The specification defines this:


> question 2:
> Is it possible to configure JsonDecoder for reading unordered field input?

That is an unfortunate aspect of the Java implementation of the JsonDecoder.



View raw message