Mustache-Java: How to get value in Map by key -
i using jmustache in java.
i have map variable in mustache template. how can fetch value @ particular key in map, in java (map.get()).
i know how iterate through keys , values of map in template. want solution without iteration can evaluate expression such as:
data
{ "cities": [ { "tokyo": { "overview": { "population": "19000000", "area": "450000" } } }, { "sydney": { "overview": { "population": "4500000", "area": "6250000" } } } ] }
template
"the population of tokyo is: {{cities['tokyo'].overview.population}}"
Comments
Post a Comment