Skip to content

in operator doesn't support key in object or object in array of objects #27

Open
@deinspanjer

Description

@deinspanjer

Currently, "in" supports these cases:
Primitive element in array: {"in":[ "Ringo", ["John", "Paul", "George", "Ringo"] ]}
Substring in string: {"in":["Spring", "Springfield"]}

However, if the array you are testing for containment holds objects, in doesn't work:
{"in": [ {"a": 1}, [ { "a":1 }, { "b":2 } ] ] }
This gives the error Unrecognized operation a

It seems like it could also support testing for the existence of a key in an object:
{"in": [ "a", { "a":1, "b":2 } ] }
Which also gives the same Unrecognized operation a error.

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