-Re: JSon representation of avro enum : not a string?
Bertrand Dechoux 2013-04-21, 16:12
Ok. Good to know. Thanks for the pointers. I will try to upgrade then if I
want to keep my enums useful.
On Fri, Apr 19, 2013 at 9:22 PM, Doug Cutting <[EMAIL PROTECTED]> wrote:
> That is a bug. It's been fixed. Twice!
> On Fri, Apr 19, 2013 at 7:16 AM, Bertrand Dechoux <[EMAIL PROTECTED]>
> > Hi,
> > I am using to 1.4.0 version of avro (not by choice) and tried a
> > on a GenericRecord containing somewhere a GenericEnumSymbol. My problem
> > that this instance is not represented as a string in JSON but by its name
> > itself. As a consequence it does not produce a valid json as far as I
> > Is it the excepted behaviour? Is that because I am using an old version
> > avro? Or is it that the toString() representation is not meant to be the
> > same as the JSON representation?
> > Thanks in advance
> > Bertrand