I need to extract the list of property names from a dynamic json string. The following is a simplified version. How can I get an array of ["xxxxxxx","zzzzzzzzzzzzz"]
Don't do this with string operations 😣
Compose: Your flow's JSON
Select From:
xpath(
xml(json(concat('{"root":', outputs('Compose'),'}}'))),
'/root/*'
)
Select Map:
xpath(
item(),
'name(/*)'
)
Only downside: You might have to handle XML encoding of characters that are not allowed as node names.
Output:
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2