If you have a simple POJO (Plain Old Java Object) or POGO (Plain Old Groovy Object), you can use Groovy's default Map based constructor to convert the JSON string to an Object type. package com.example.groovy import groovy.json.JsonBuilder import groovy.json.JsonSlurper import groovy.transform.ToString /** * Created…