Skip to content

Element wildcard (*) is not supported on intermediate elements and produces wrong results on terminal nodes #30

@eliaslevy

Description

@eliaslevy

This works

JsonPath.on({'a'=>{'b'=>{'c'=>1}}}, '$.a.*') # [{"b"=>{"c"=>1}}] 

but note is produces the wrong result. It should generate [{"c"=>1}].

This doesn't work

JsonPath.on({'a'=>{'b'=>{'c'=>1}}}, '$.a.*.c') # []

It should return [1].

Note that http://jsonpath.curiousconcept.com/ produces the expected results in both cases.

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