We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Parse REST webservice JSON Response

Received Response
10
Views
2
Comments
edited Jun 9, 2020 9:06AM in Sales 2 comments

Summary

Parse REST webservice JSON Response

Content

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"
        }
    ]
}

Version

20A

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!