Skip to content

Does the parser support exclamation character (!)? #79

@xiaoyanqu

Description

@xiaoyanqu

Hi there, thanks so much for provide this awesome tool, i.e. jsonpath.

I'm working on parsing a parameter like parse("abcdefg!abcdefg").find(json_object), which contains the '!' character in one of the keys of json objects, then I got:
raise JsonPathLexerError('Error on line %s, col %s: Unexpected character: %s ' % (t.lexer.lineno, t.lexpos - t.lexer.latest_newline, t.value[0])) jsonpath_ng.lexer.JsonPathLexerError: Error on line 1, col 29: Unexpected character: !

I was wondering is the exclamation character (!) currently supported by the parser? If so, can you please advise how shall I feed in?

Thanks!

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