Json transformation - help needed

The JSONPATH Transformation Service is limited in some respects, an important limitation is that you can only return one string. There is no way to return an array.
There are some “cheats” that can be used in some circumstances to get a single string with multiple content.

That doesn’t seem to have anything to do with your while-loop.

Show us your example JSON, show us what you want to extract, I’m not guessing.

There’s a complicated list example here