You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* def json = { foo: [{ bar: 1}, {bar: 2}, {bar: 3}]}
* def list = json.foo
* match list[0].bar == 1
Fails with:
java.lang.RuntimeException: not json, cannot do json path for value: [type: LIST, value: [{"bar":1},{"bar":2},{"bar":3}]], path: $[0].bar
at com.intuit.karate.Script.matchJsonPath(Script.java:497)
The text was updated successfully, but these errors were encountered:
Fails with:
The text was updated successfully, but these errors were encountered: