ibec_json_SelectNode
Selects a node using its name/path/index relatively to the specified JSON node.
Syntax
function ibec_json_Selec||tNode(JSONNode : variant; Expression : variant; Options : integer) : variant;
JSONNode | Node which will be used as a start point for searching. |
Expression | Can be a simple name, path or ordinal index of node in the list of children. |
Options: | The following options are available: |
__jsonIgnoreCase | Ignore character case when searching by name/path. By default search is case sensitive. |
__jsonSearchByName | Search node by name. |
__jsonSearchByIndex | Search node by its ordinal index. |
If __jsonSearchByName or __jsonSearchByIndex are not specified, searching will be performed depending of the type of the Expression. If the Expression is of a string type - searching by name will be performed. If it is of an integer type - searching by index will be performed.
Function returns a pointer to the selected node or NULL if the node is not found.
See JSON example
back to top of page
<< ibec_json_Free | IBEBlock | ibec_json_NodeType >>