GetNodeType property: JsonNode class
Syntax
GetNodeType()
Description
Use this method to return the type of the node.
Parameters
None.
Returns
Integer.
List of numeric values and the corresponding node types:
| Numeric Value | Node Types |
|---|---|
|
0 |
JSON_NODE_NULL |
|
1 |
JSON_NODE_OBJECT |
|
2 |
JSON_NODE_ARRAY |
|
3 |
JSON_NODE_VALUE |
Example
Local JsonNode &jNode = CreateJsonNode();
Local integer &nodeType = &jNode.GetNodeType();