Below will output either a simple array of categories, or a string of categories separated by a comma. Note that you would have an object called categoryDescriptions that would hold the raw data as per my previous post. I've just used a Compose to hold this data in my example.
The full flow is below. I'll go into each of the actions.

Compose hold the categories as what you'd get from your API response.
{
"categoryDescriptions": {
"category1": "Cool",
"category2": "Nice",
"category3": "Awesome",
"category4": null,
"category5": null,
"category6": null,
"category7": null,
"category8": null,
"category9": null,
"category10": null,
"category11": null,
"category12": null,
"category13": null,
"category14": null,
"category15": null,
"category16": null,
"category17": null,
"category18": null,
"category19": null,
"category20": null,
"category21": null,
"category22": null,
"category23": null,
"category24": null,
"category25": null
}
}
I then convert the JSON object to XML including the root element that's required for an XML document. The expression is:
xml(json(concat('{"root": ', outputs('Compose')?['categoryDescriptions'], '}')))

The output of this is a string of XML.

We then use xpath to extract out the actual value of each category. The expression used is:
xpath(outputs('Compose_XML'), '//root/*/text()')

The output from this is:

And finally, we can join the categories by comma (or similar).

The output from this is:

It's kind of crazy we have to do this sort of thing just to get our category values. Planner via the API or the PA actions both give us badly formed JSON objects unfortunately.