Skip to content

unexpected token 'and' / 'or' for properties #72

@torbenw

Description

@torbenw

This works:
jsonpath.findall('$.orders', json_object)
jsonpath.findall('$.test', json_object)
jsonpath.findall('test', json_object)

This does not work:
jsonpath.findall('orders', json_object) -> JSONPathSyntaxError: unexpected token 'or', line 1, column 0
jsonpath.findall('andy', json_object) -> JSONPathSyntaxError: unexpected token 'and', line 1, column 0

According to the documentation the '$.' part is optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions