json-query-language icon indicating copy to clipboard operation
json-query-language copied to clipboard

Nested keys in $contains operator

Open clue opened this issue 11 years ago • 1 comments

Now that the $contains operator has been implemented (#9), we should consider if it should support nested keys (dot-notation) like this:

{
    "location" : {
        "$contains" : "home.latitude"
    }
}

This can commonly be expressed like this (which is already supported):

{
    "location.home" : {
        "$contains" : "latitude"
    }
}

This might be particularly useful with regards to #13:

{
    "$contains" : "location.home.latitude"
}

clue avatar Nov 27 '14 15:11 clue

This is now explained in the current spec. Postponing this and removing milestone for now.

clue avatar Nov 27 '14 20:11 clue