Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

Add support of JsonPath filter (script) expression to JSON.GET #79

Description

@pavelsr

Hi, I tried to use JsonPath filter expression and got Invalid argument(s) error :

127.0.0.1:6379> JSON.GET d [10]
"{\"code\":\"AAL\",\"coordinates\":{\"lat\":57.028811,\"lon\":9.917771},\"country_code\":\"DK\",\"name\":\"\xe3\x82\xaa\xe3\x83\xbc\xe3\x83\xab\xe3\x83\x9c\xe3\x83\xbc\",\"name_translations\":{\"en\":\"Aalborg\"},\"time_zone\":\"Europe/Copenhagen\"}"
127.0.0.1:6379> JSON.GET d .[?(@.code=='AAL')]
Invalid argument(s)
127.0.0.1:6379> JSON.GET d .[(@.code=='AAL')]
Invalid argument(s)

Seems like filter expressions is not supported yet, right ?
If it's supported - please provide example. Thanks a lot.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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