Skip to content

jp not doing the same as the playground #50

@haanjde

Description

@haanjde

input:
{"z":{"a":{"b":"c"},"g":{"b":"d"},"h":{"b":"e"},"i":{"b":"f"}}}
expression:
z.*|[?b == `d`]
on the playground returns:
[ { "b": "d" } ]
but on Debian 12.5 jp version 0.2.1 with:
jp --filename z.json --expr-file z.jp
returns:
Error evaluating JMESPath expression: invalid character 'd' looking for beginning of value
with return code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions