spark85 / json-path

Automatically exported from code.google.com/p/json-path
0 stars 0 forks source link

Incorrect evaluation of indefinite path that points to arrays #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

We have indefinite json path that points to more than one array:
jsonPath = "$..arr";

json:
{
    obj1: {
        arr: ["1", "2"]
    },
    obj2: {
        arr: ["3", "4"]
    }
}

What is the expected output? What do you see instead?

The read() method must return [["1", "2"], ["3", "4"]]
but it returns ["1", "2", "3", "4"]

What version of the product are you using? On what operating system?
version: 0.8.1

Please provide any additional information below.

The bug is in the FieldsFilter.

Original issue reported on code.google.com by sergey.m...@gmail.com on 7 Nov 2013 at 1:11

GoogleCodeExporter commented 9 years ago
Fixed in 1.0

Original comment by kalle.st...@gmail.com on 12 Dec 2013 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by kalle.st...@gmail.com on 18 Sep 2014 at 5:39