Created 05-28-2024 08:57 PM
I am trying to create a flow to convert a JSON object to Avro and then consume the produced data from Avro to JSON.
This is the sample data I am using
When I check the data that is finally consumed and converted back to JSON , It is coming as array instead of object :
[ {
"Vehicle" : "BigVehicle",
"Fromuser" : "User1",
"Timestamp" : "2024-03-19T13:00:00+0530"
} ]
convertRecord configuration for JSON toAvro conversion:
Convert Record from Avro to JSON:
Created 05-28-2024 10:28 PM
@nisha2112goyal, Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts @SAMSAL @MattWho @steven-matison who may be able to assist you further.
Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.
Regards,
Vidya Sargur,Created 06-01-2024 04:56 AM
Hi @nisha2112goyal ,
I will try and change the Output Grouping in the JsonREcordSertWRtiter from Array to One Line Per Object and see if that helps.