Hi @Amar Agnihotri ,
Thank you for posting query in Microsoft Q&A Platform.
Array variables cannot contain items of type array in Azure data factory. Hence you are seeing that error. Since your converted that array outputs as strings and then tried to store array variable, it worked.
I am little unclear, what you want to do array storing array values in array variable. From your screenshot of line, I could assume that finally you are converting entire array variable data bask to string and then may be that string you are storing as some value in to some column of file or table. Please correct me If I am wrong.
If my above understanding is correct, then the approach you tried is also fine, where you taken data as string and appended in to array. Please note, the backslashes which you see usually are escape characters. If in your case if your seeing blackslahes also getting saved in to your file, then try to use replace() to replace unwanted characters with empty and then store it to your file.
Please check this documentation which explains about who special characters can be replaced which shown in dynamic content editor.
Hope this helps. Please let us know if any further queries.
----
Please consider hitting Accept Answer button. Accepted answers help community as well.