How to convert GenericRecord to a json string corresponding to the schema given in Avro

1.4k Views Asked by At

I have a requirement where i need to store the data in json format in AWS S3, we are currently hitting an enpoint which gives List[GenericRecord], and that needs to be stored in Json format, can any one share a sample code for achieving this. I am unable to deserialize GenericRecord to Json string, and even ObjectMapper writeValueAsString method is also not working on it

0

There are 0 best solutions below