Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. {
  2. "status": "",
  3. "source": "",
  4. "processedRecords": 1,
  5. "totalRecords": 4,
  6. "description": "1 company(ies) added/updated, and 2 company(ies) failed",
  7. "payload": [
  8. {
  9. "Added/updated company(ies)": [
  10. "COM001FILE"
  11. ]
  12. },
  13. {
  14. "Failed company(ies)": [
  15. {
  16. "id": "COM003FILE",
  17. "index": "NA",
  18. "errorMsg": [
  19. [
  20. "INVALID_LOCATION"
  21. ]
  22. ]
  23. },
  24. {
  25. "id": "COM002FILE",
  26. "index": "NA",
  27. "errorMsg": [
  28. [
  29. "INACTIVE"
  30. ],
  31. [
  32. "INVALID_LOCATION",
  33. "INACTIVE"
  34. ]
  35. ]
  36. }
  37. ]
  38. }
  39. ]
  40.  
  41. Filter resposneFilter = Filter.filter(Criteria.where("errorMsg").is(
  42. "INACTIVE"));
  43. List<Map<String, Object>> respons = JsonPath.parse(response).read(
  44. "$.payload[*]", resposneFilter);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement