val theList = session(“itemNames”).as[List[String]] // list with items [“item1”, “ item2”, “ item3”]
val theMap = Map.empty[String,String] // empty map
But it is not working. I am storing it in the session like below.
session.set(“assertPermMap”, (resourcesList.map(item => (item, session(“operation”).as[String])).toMap).mkString(","))
The issue is the format of map object.
The current format is like below.
{ “key1” → value1, “key2” → value2}
But, it will work if the format of map should be like below.
{ “key1” : “value1”, “key2” : “value2”}