Skip to content

Escaping single quote in json path string #728

@ashek-simeon

Description

@ashek-simeon

Documentation

  • I have consulted the documentation, and my question isn't answered there.

Nuget Package

JsonPath.Net

Package Version

0.6.7

How can I help? Please provide as much context as possible.

Is there a way to escape a single quote within a string like this one?

$[?(@.Name == 'how do I escape a single' quote here?')]

I've tried putting a backslash before the single quote, which I believe should be valid based on the JsonPath specifications, unless I'm misinterpreting them

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpkg:path

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions