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;
 
JSONNodeNode which will be used as a start point for searching.
ExpressionCan be a simple name, path or ordinal index of node in the list of children.
Options:The following options are available:
__jsonIgnoreCaseIgnore character case when searching by name/path. By default search is case sensitive.
__jsonSearchByNameSearch node by name.
__jsonSearchByIndexSearch 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.

Example

See JSON example

back to top of page
<< ibec_json_Free | IBEBlock | ibec_json_NodeType >>