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
Stringjson = "[\"a\", \"b\", \"c\", \"d\", \"e\"]"; // i.e., the json is ["a", "b", "c", "d", "e"]Objectres = JsonPath.read(json, "$[0:3:2]");
System.out.println(res); // it prints ["a","b","c"], the expected value is ["a", "c"].
"JSONPath allows the wildcard symbol * for member names and array indices. It borrows the descendant operator '..' from E4X and the array slice syntax proposal [start:end:step] from ECMASCRIPT 4."
So, it is either a bug, or an unimplemented feature.
The text was updated successfully, but these errors were encountered:
How to reproduce:
In https://goessner.net/articles/JsonPath/ , it shows JSONPath supports
step
in array slice operator:"JSONPath allows the wildcard symbol * for member names and array indices. It borrows the descendant operator '..' from E4X and the array slice syntax proposal
[start:end:step]
from ECMASCRIPT 4."So, it is either a bug, or an unimplemented feature.
The text was updated successfully, but these errors were encountered: