Categories
Mastering Development

Deserialize Avro message with schema type as object

I’m reading from a Kafka topic, which contains Avro messages. I have given below schema. I’m unable to parse the schema and deserialize the message. {“type”: “record”, “name”: “Request”, “namespace”: “com.sk.avro.model”, “fields”: [ { “name”: “jobId”, “type”: [ “null”, “string” ], “default”: null, “description”: “REQUIRED ” }, { “name”: “businessUnit”, “type”: “com.example.BusinessUnit”, “default”: “ABC”, “description”: […]