avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Kreps <jay.kr...@gmail.com>
Subject GenericRecord.toString does not handle enums properly
Date Wed, 15 Dec 2010 21:13:37 GMT
The output from GenericRecord.toString in Java is not valid JSON, for
example a record with the schema:

  "type": "record",
  "name": "TestRecord",
  "fields" : [
                 "symbols":["a", "b"],

Should be output as
but is output as

The later is not really JSON. I saw this on 1.4 but I think it exists
on trunk too.

Is this a known issue? I think the fix is just to add another special
case in GenericData.toString()...


View raw message