Skip to content

JSON.DEL doesn't work correctly when filter is applied to object #79

Description

@luca-bassoricci

Using valkey-bundle:8.1 this test doesn't work correctly:

json.set test $ '{"root" : {"1" : {"value":1},"2" : {"value":2},"3" : {"value":3},"4" : {"value":4},"5" : {"value":5}}}' -> OK
json.del test '$.root[?(@.value > 2)]' (or json.del test '$.root..[?(@.value > 2)]') -> 0 ERROR

I'm expecting last command returning 3.

Can you check this? Maybe I'm misusing json.del command or using wrong jsonpath.

Activity

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

Metadata

Metadata

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