We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample JSON:
{ "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" } ] }
Query: $.phoneNumbers.length
On using the 'SelectTokens' to run the query I am not able to get the length value from the query.
Expcted: [ 2 ]
IMPORTANT NOTE: https://github.com/json-path/JsonPath#functions
Can be Functions like length() supported here.
The text was updated successfully, but these errors were encountered:
FYI: duplicate of #1318
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Sample JSON:
{
"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"
}
]
}
Query:
$.phoneNumbers.length
On using the 'SelectTokens' to run the query I am not able to get the length value from the query.
Expcted:
[
2
]
IMPORTANT NOTE:
https://github.com/json-path/JsonPath#functions
Can be Functions like length() supported here.
The text was updated successfully, but these errors were encountered: