Open garciapacho opened 2 years ago
JSON Path expression with many subscript operator is not returned values.
JSON Sample:
{ "id": "123456", "contactMedium": [ { "type": "Telephone", "preferred": true, "characteristic": { "type": "Default", "contactType": "Default", "phoneNumber": "456123789" } }, { "type": "Telephone", "preferred": false, "characteristic": { "type": "Home", "contactType": "Home", "phoneNumber": "987654321" } }, { "type": "Telephone", "preferred": false, "characteristic": { "type": "Work", "contactType": "Work", "phoneNumber": "231654987" } }, { "type": "Email", "preferred": false, "characteristic": { "type": "email", "contactType": "email", "emailAddress": "test@test.com" } } ] }
JSON Path
$.contactMedium[?(@.type=='Telephone')].characteristic[ ?(@.type=='Home')].phoneNumber
It should return values with many subscript operators.
[ "987654321" ]
https://jsonpath-plus.github.io/JSONPath/demo/?
Describe the bug
JSON Path expression with many subscript operator is not returned values.
Code sample or steps to reproduce
JSON Sample:
JSON Path
Console error or logs
Expected behavior
It should return values with many subscript operators.
Expected result
Environment (IMPORTANT)
https://jsonpath-plus.github.io/JSONPath/demo/?