in javascript I can write the follow code:
response = {
status: 1,
data: {
key : 2
}
}
var result = `status is ${response.status}, data key is ${response.data.key}`
console.log(result);
the output is
status is 1, data key is 2
Is there any libs provide the way to do it in java, providing the following function?
String xxxFunction(Map map, String template)
please note the usage of ${response.data.key}
, map in map