Parse REST webservice JSON Response
Summary
Parse REST webservice JSON ResponseContent
How can I parse below JSON Response in groovy. I wanted to read Clicked -> campaignID -> Count
Response Msg:
{
"clicked": [
{
"campaignId": 135,
"links": [
{
"count": 4,
"ip": "65.154.226.109",
"eventTime": "2020-05-12T19:47:30.178+05:30",
"url": "https://attendee.gotowebinar.com/register/5780340841458777872?utm_source=sendinblue&utm_campaign=Last_Minute_Registration__Webinar_Unexplored_Fusion_Financials_Functionalities_USA&utm_medium=email"
}
]
}
],
"messagesSent": [
{
"campaignId": 125,
"eventTime": "2020-04-16T19:30:10.809+05:30"
},
{
"campaignId": 130,
"eventTime": "2020-04-20T19:30:04.119+05:30"
},
{
"campaignId": 132,
"eventTime": "2020-04-28T20:40:00.858+05:30"
},
{
"campaignId": 133,
"eventTime": "2020-05-06T23:51:27.807+05:30"
},
{
"campaignId": 135,
"eventTime": "2020-05-12T19:42:16.768+05:30"
}
],
"opened": [
{
"campaignId": 135,
"count": 1,
"ip": "65.154.226.109",
"eventTime": "2020-05-12T19:47:32.218+05:30"
}
]
}