Skip to content

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

@luca-bassoricci

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions