Page History
Several SRP JsonX routines rely on paths to reference elements within a document. Moreover, every document maintains a current path that references an object or array. When you call SRP_JsonX, for example, to add a value, that value is added to the current object or array. To change the current path, users can Paths are specially formatted strings, akin to a mini query language, that tell SRP JsonX how to find an element. Paths are also returned when you call SRP_JsonX_Go, SRP_JsonX_GoBack, State or SRP_JsonX_GoRoot.
...
Trace. Those are current paths, paths that point to the current element of each document.
Empty Path
The simplest path is an empty one.
...
Code Block | ||
---|---|---|
| ||
Result = SRP_JsonX_Get("menu.items") |
To get a an array element, surround the array index with square brackets or angle brackets. This examples gets item 12 in the items array.
...