You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Sharmarke Aden (JIRA)" <ji...@apache.org> on 2012/11/09 17:04:13 UTC
[jira] [Commented] (AVRO-1201) CLONE - GenericRecord.toString can
produce invalid JSON
[ https://issues.apache.org/jira/browse/AVRO-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13494073#comment-13494073 ]
Sharmarke Aden commented on AVRO-1201:
--------------------------------------
GenericData toString() method doesn't check to see if "datum instanceof Enum" and appropriately handle enums. This results in an invalid json being produced similar to the one seen in AVRO-713.
> CLONE - GenericRecord.toString can produce invalid JSON
> -------------------------------------------------------
>
> Key: AVRO-1201
> URL: https://issues.apache.org/jira/browse/AVRO-1201
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.4.1
> Reporter: Sharmarke Aden
> Assignee: Jay Kreps
> Fix For: 1.5.0
>
>
> The GenericData.toString method can produce invalid JSON. The problem is that enums are printed without quotes, as in
> {"emum_field":a}
> instead of
> {"enum_field":"a"}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira