Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2026-01-18 16:39:43 +03:00
parent 8d30ff7d33
commit 28102ade91

View File

@ -240,13 +240,13 @@ while the input format is a bit more relaxed than in several details.
Paths are used for internal references in cases when objects are Paths are used for internal references in cases when objects are
encountered multiple times, e.g. in recursion. encountered multiple times, e.g. in recursion.
A path is an array of keys, the meaning of each key depends on the data A path is an array of keys, the semantics of each key depend on the data
structure traversed: structure traversed:
- array -> number - `Array` expects a number
- object -> string - `Set` expects a number -- item order in set
- set -> number -- item order in set - `Map` expects pair of consecutive numbers -- the first indicates item
- map -> pair of numbers -- the first indicates item order the second order the second if `0` selects the key, if `1` selects the value.
if 0 selects the key, if 1 selects the value. - `Object` expects a string
An empty path indicates the root object. An empty path indicates the root object.