[
https://issues.apache.org/jira/browse/AVRO-1800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17508515#comment-17508515
]
Kyle Schoonover commented on AVRO-1800:
---------------------------------------
[~mgrigorov] Looking at the C# implementation ToString() was never meant to
return the actual json. I've added some code coverage, which I will make a
subtask under this bug. But I don't believe this to be an actual bug. Also
the Java implementation does not have a GenericRecord.ToString(). It does
however, have a GenericData.Record.ToString(). I think we can close this out,
works as expected.
> GenericRecord.ToString always produces invalid JSON
> ---------------------------------------------------
>
> Key: AVRO-1800
> URL: https://issues.apache.org/jira/browse/AVRO-1800
> Project: Apache Avro
> Issue Type: Bug
> Components: csharp
> Reporter: Chris Wong
> Priority: Minor
>
> When GenericRecord ToString is run, trailing commas are added after every
> single KeyValuePair stored in the record. The extra commas lead to the JSON
> being invalid. The presence of the schema in the ToString() also leads to
> the ToString() being different from the Java implementation.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)