If you run your api call inside a function, and use the below method to convert back to a HashMap before returning the api response back to global scope, this will resolve the issue. This function reclusively converts all LazyMap's within the payload.
def convertLazyMap(obj) {
if (obj instanceof Map) {
def serializableMap = [:]
obj.each { key, value ->
serializableMap[key] = convertLazyMap(value)
}
return serializableMap
} else if (obj instanceof List) {
return obj.collect { convertLazyMap(it) }
} else {
return obj
}
}