Hi ,
i am using apigee edge public cloud.
Not getting the expected result for the JSONPath
Input:
{ "details":[ { "name":"A", "dept":"CSE" }, { "name":"B", "dept":"MECH" }, { "name":"C", "dept":"EEE" }] }
Expression:
$.details[?(@.name='B')].dept
Expected Output:
MECH
Actual Output: []
Could you please check and let me know why we have this behavior.
It is not clear from your question where and how you use this Jsonpath accessor. Could you elaborate more where you observe this , a snippet of the code will also help.
User | Count |
---|---|
7 | |
2 | |
2 | |
1 | |
1 |