Skip to content

Bug in recursive search? #6

Closed
Closed
@gavv

Description

@gavv

The case I am describing here is covered by unit tests but I think it's a bug both in implementation and tests.

Test JSON:

{
    "A":["string",23.3,3,true,false,null],
    "B":"value",
    "C":3.14,
    "D":{
        "C":3.1415,
        "V":["string2",{"C":3.141592}]
    }
}

Expression: $..C or $..["C"].

Actual results:

[3.1415, 3.141592]

Expected results:

[3.14, 3.1415, 3.141592]

Other parsers (https://github.com/PaesslerAG/jsonpath and https://codebeautify.org/jsonpath-tester) work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions