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: http://avro.apache.org/docs/1.5.1/spec.html#json_encoding > 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. http://s.apache.org/E2N Doug
