P
P
Pavel Talaiko2020-01-17 11:56:20
Java
Pavel Talaiko, 2020-01-17 11:56:20

How to convert Avro object data to Json string?

Hello.
Guys, this is the story.
There was a json with data and a protocol created it on the structure - generated it. Got an object.
Successfully using the ObjectMapper, the data was written to the object, now the reverse process is needed.
I also try to convert through ObjectMapper objectmapper.writeValueAsString(objectAvro).
But there are errors AvroRuntimeException trying to convert Map Schema.
Errors occur.
How to correctly convert data from avro object to json string?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question