Andrew Benedek created AVRO-3274:
------------------------------------
Summary: Request for C# API to implement a JSON Encoder
Key: AVRO-3274
URL: https://issues.apache.org/jira/browse/AVRO-3274
Project: Apache Avro
Issue Type: Improvement
Components: csharp
Affects Versions: 1.10.2
Reporter: Andrew Benedek
This is a request or improvement.
I have a .NET Core application that needs to publish AVRO JSON encoded messages
to our Confluent Kafka REST API. I can see that the Java and C++ API's have a
JSON encoder, but I couldn't tell from the documentation whether the C# API has
it, or at least it doesn't seem to. The documentation for the C# API is a
little light on for details.
The main problem facing the plain JSON we are currently publishing is that when
using an AVRO schema and the union type, we hit the problem described here
https://issues.apache.org/jira/browse/AVRO-2899. We need to generate the type
information in the JSON in order to satisfy the validation in the Kafka REST
API. Hence, the need for an AVRO JSON encoder.
I can't re-write the .NET application, so I'm faced with the prospect of using
either the Java or C++ API's with some sort of wrappers or interoperability
framework, which I'm desperately trying to avoid.
Any assistance or suggestions would be much appreciated.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)