Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "status": "",
- "source": "",
- "processedRecords": 1,
- "totalRecords": 4,
- "description": "1 company(ies) added/updated, and 2 company(ies) failed",
- "payload": [
- {
- "Added/updated company(ies)": [
- "COM001FILE"
- ]
- },
- {
- "Failed company(ies)": [
- {
- "id": "COM003FILE",
- "index": "NA",
- "errorMsg": [
- [
- "INVALID_LOCATION"
- ]
- ]
- },
- {
- "id": "COM002FILE",
- "index": "NA",
- "errorMsg": [
- [
- "INACTIVE"
- ],
- [
- "INVALID_LOCATION",
- "INACTIVE"
- ]
- ]
- }
- ]
- }
- ]
- Filter resposneFilter = Filter.filter(Criteria.where("errorMsg").is(
- "INACTIVE"));
- List<Map<String, Object>> respons = JsonPath.parse(response).read(
- "$.payload[*]", resposneFilter);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement