I want to parse this data using JSONSlurper and convert it into a map and then pass data using variable to a template.
{
"biodata": {
"Ruby": {
"Expertise": "web development",
"EXperience": "5 years"
},
"Dylon": {
"Expertise": "Java",
"EXperience": "2 years"
}
}
}
Something like this:
def myJson = fetchedJson
def experienceDylon = myJson.biodata.dylon.experience
How to achieve this using groovy?