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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -