mirror of
https://github.com/flynx/serialize.js.git
synced 2026-07-10 11:10:57 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8d30ff7d33
commit
28102ade91
12
README.md
12
README.md
@ -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.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user