jsquery
jsquery copied to clipboard
Question about indexes
For example, jsonb document {"a": [{"b": "xyz", "c": true}, 10], "d": {"e": [7, false]}} would be decomposed into following entries:
"a".#."b"."xyz" "a".#."c".true "a".#.10 "d"."e".#.7 "d"."e".#.false
Since JsQuery doesn't support search in particular array index, we consider all array elements to be equivalent. Thus, each array element is marked with same # sign in the path.
If this is true then how do you make the distinction between two different arrays at the same level? Something like [[1,2,3][4,5,6]] would result in: #.#.1 #.#.2 #.#.3 #.#.4 #.#.5 #.#.6 which makes the distinction impossible even though containment is respected by jsquery.