I've updated the PR with another commit. We're now passing the stack as an array to the template. To handle both the JSON obj and the Array I wrapped the Array in another object.

Otherwise the template would iterate over all Array items.