@Yahya Shareef Assuming your input record is in an array and you are looping in using 'for each' action. You need to initialize a variable of type string and inside the foreach loop use Append to string variable action
to the string according to your JSON requirement. You can change or add action to create the right JSON format i.e. add '[' ']' as the json should be array to parse it correctly.