-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
After upgrading to 2.5.0, this code started to return strange results
String json = "{\n" +
" \"store\": {\n" +
" \"book\": [\n" +
" {\n" +
" \"category\": \"reference\"\n" +
" },\n" +
" {\n" +
" \"category\": \"fiction\"\n" +
" },\n" +
" {\n" +
" \"category\": \"fiction\"\n" +
" },\n" +
" {\n" +
" \"category\": \"fiction\"\n" +
" }\n" +
" ]\n" +
" },\n" +
" \"expensive\": 10\n" +
"}";
Object result = using(Configuration.defaultConfiguration())
.parse(json)
.read("$..book.length()");
System.out.println(result);In 2.4.0 it returns an array containing number 4, in 2.5.0 it returns 2.
Metadata
Metadata
Assignees
Labels
No labels