You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "radai rosenblatt (Jira)" <ji...@apache.org> on 2021/03/03 00:23:00 UTC

[jira] [Created] (AVRO-3061) toString implementation on avro objects emits confusing json

radai rosenblatt created AVRO-3061:
--------------------------------------

             Summary: toString implementation on avro objects emits confusing json
                 Key: AVRO-3061
                 URL: https://issues.apache.org/jira/browse/AVRO-3061
             Project: Apache Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.10.1
            Reporter: radai rosenblatt


toString() for both specific and generic records emits what looks to be avro json format, but isnt.

 

its close enough for new users to try using toString() output where avro json is expected.

 

it would be better if the toString() implementation was changed to use a proper JsonEncoder so that the output would actually be valid avro json. it would also result in less code overall



--
This message was sent by Atlassian Jira
(v8.3.4#803005)