Following is my json :
{
"id": null,
"extId": "720916740",
"legacyId": null,
"customerId": null,
"accountId": null,
"clientId": null,
"publisherId": null,
"name": "AllColumns1_1482141239819",
"status": "ACTIVE",
"operationStatus": null,
"startDate": "20180101",
"endDate": null,
"channel": "SEARCH",
"lastSyncDate": null,
"linkStatus": "NOT_LINKED"
},
{
"id": null,
"extId": "720916743",
"legacyId": null,
"customerId": null,
"accountId": null,
"clientId": null,
"publisherId": null,
"name": "AllColumns2_1482141239819",
"status": "ACTIVE",
"operationStatus": null,
"startDate": "20180101",
"endDate": null,
"channel": "SEARCH",
"lastSyncDate": null,
"linkStatus": "NOT_LINKED"
},
{
"id": null,
"extId": "720933833",
"legacyId": null,
"customerId": null,
"accountId": null,
"clientId": null,
"publisherId": null,
"name": "2TestCamp2_1482149078243",
"status": "ACTIVE",
"operationStatus": null,
"startDate": "20180101",
"endDate": null,
"channel": "SEARCH",
"lastSyncDate": null,
"linkStatus": "NOT_LINKED"
}
From above json, I want to get id and extid of where name is "2TestCamp2_1482149078243". How can I get this in JAVA ?
In general, From a json array, first I want to find that sub-array, where value is "2TestCamp2_1482149078243"; and then from that sub-array, get values of keys id and ext id.
Thanks. Would be great if someone helps me in this. I am new to java and json.