Hi Mikolaj,
You can iterate your array using the iterator and then use the module “Aggregate to JSON”