Skip to content

escaping in values raises errors #160

Open
@helloworld121

Description

@helloworld121

Hi Brett,

I started using your project, and I love it.
But I got one issue with filtering for values, that contain brackets. I tried escaping those brackets but it doesn't work.
Could you take a look at this?

$.book[?(@.chapter === 'chap (1)')]
// Error: jsonPath: Invalid or unexpected token: _$_v.chapter === 'chap (1

I also tried to escape the value by using backticks. But it didn't work.
It is possible, that this is a bug?

It would be great if you could help me out.

Thank you very much,
Sebastian

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions