Created
December 18, 2018 11:20
-
-
Save imyousuf/ceace9f43e1e66ebc20be7529af337ef to your computer and use it in GitHub Desktop.
JSONPath Samples
This file contains hidden or 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
$.phoneNumbers[?(@.type=='home')].number | |
$.firstName |
This file contains hidden or 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
JSON Path Tested - | |
http://jsonpath.com/? | |
Java Impl - | |
https://github.com/json-path/JsonPath |
This file contains hidden or 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
{ | |
"firstName": "John", | |
"lastName" : "doe", | |
"age" : 26, | |
"address" : { | |
"streetAddress": "naist street", | |
"city" : "Nara", | |
"postalCode" : "630-0192" | |
}, | |
"phoneNumbers": [ | |
{ | |
"type" : "iPhone", | |
"number": "0123-4567-8888" | |
}, | |
{ | |
"type" : "home", | |
"number": "0123-4567-8910" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment