Skip to content

$[*].bar[*].baz broken in 1.0.2 #9

@cburgmer

Description

@cburgmer

It seems the latest change breaks another query:

  • $[*].bar[*].baz
    Input:
    [{"bar": [{"baz": "hello"}]}]
    
    Expected output:
    ["hello"]
    
    Actual output:
    [["hello"]]
    

If you are interested, you can use the json-path-comparison as a regression suite, all current queries are mapped with current and expected results in https://github.com/cburgmer/json-path-comparison/blob/master/regression_suite/Golang_github.com-bhmj-jsonslice.yaml.

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