Hi @Shekhar Nadide ,
Apologies for delay in response . I get what you are saying. It seems you want to store the output as an array, not as the object of the JSON.
To achieve that, before sink transformation , you can add an aggregate transformation and use collect function to convert object of JSON to array.
This is how the output looks like before converting to array.
Now, I added an aggregate transformation and used this expression collect(@(id=id,name=name,displayName=displayName))
It would convert the JSON objects into an array . This is the output after aggregation:
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators