I need to iterate over a Map<String, String>
I’ve tried that template syntax:
{#for key in myTemplate.myMap.keyset}
but it raises:
{myTemplate.myMap.keyset}: Unsupported iterable type found: java.lang.Object
at the build time. However, I don’t quite understand as a keyset is a set and, as such, it’s iterable.
New contributor
Nicolas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.