jsquery icon indicating copy to clipboard operation
jsquery copied to clipboard

Question about indexes

Open Ileca opened this issue 3 years ago • 0 comments

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.

Ileca avatar Jun 14 '21 23:06 Ileca