Created
September 20, 2017 12:27
-
-
Save banterCZ/43e9d57d5bac92ef0781648430601b43 to your computer and use it in GitHub Desktop.
JSON filter (no order), test at http://jsonpath.com/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"traceId": "491a1826-0fa1-46d8-970d-704027a2548b", | |
"code": "validation.error", | |
"message": "Validation failed", | |
"errors": [ | |
{ | |
"attributeCode": "firstName", | |
"messageCode": "validation.empty" | |
}, | |
{ | |
"attributeCode": "email", | |
"messageCode": "validation.empty" | |
}, | |
{ | |
"attributeCode": "phoneNumber", | |
"messageCode": "validation.null" | |
}, | |
{ | |
"attributeCode": "lastName", | |
"messageCode": "validation.empty" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.errors[?(@.attributeCode=='firstName')].messageCode[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment