CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches

Path Syntax for Tree Traversal

Many SSD functions accept a path string for navigating the tree structure. Paths consist of names separated by '/' and array indices enclosed in brackets.

Examples:

Path: bucket/paints[2]/yellow

Represents: A value with key 'yellow' in the third element (index 2) of an array named 'paints', which is inside a hashtable named 'bucket' at the root.

JSON equivalent:

{
"bucket": {
"paints": [
{},
{},
{ "yellow": "THIS VALUE HERE" }
]
}
}

Path: [1]/mango

Represents: A value with key 'mango' in the second element of an array at the root.

JSON equivalent:

[
{},
{ "mango": "THIS VALUE HERE" }
]

Note: If automatic path traversal is not desired, the SSDNode interface methods can be used directly without paths.