Thanks for all the replies - much appreciated.
@david-franklin - your answer partially works with a minor change…
for (const _outer in response[0]) {
for (const _inner in _outer) {
for (const key in _inner) {
headers.push(${_inner} ${key})
}
}
}
gives headers as [“0 0”, “1 0”, “2 0”, “3 0”, “4 0”, …]
but if I change it to the headers.push($*{_outer*} ${key})
then I get [“input 0”, “input 0”, “input 0”, “input 0”, “input 0”, …]
so, the outer name is being extracted but not the innermost key…
@michaelderekjones - thanks for the link, but I thought I was already using the visualiser?
And with regards to your most recent post, I found the following Visualize any JSON/CSV as a table! - Community showcase - Postman - which seems to be able to extract all the node names and use them to create column headings. But as a newbie, I cannot figure out where/how in the code it is doing the extraction…