val gson: Gson = new GsonBuilder().create
def jsonToMap(jsonstring: String): java.util.Map[String, String] = {
val typeOfHashMap: Type = new TypeToken[java.util.Map[String, String]]() {
}.getType
val newMap: java.util.Map[String, String] = gson.fromJson(jsonstring, typeOfHashMap)
return newMap
}
def jsonToMap(jsonstring: String): java.util.Map[String, String] = {
val typeOfHashMap: Type = new TypeToken[java.util.Map[String, String]]() {
}.getType
val newMap: java.util.Map[String, String] = gson.fromJson(jsonstring, typeOfHashMap)
return newMap
}