GetValueType property: JsonNode class
Syntax
GetValueType()
Description
Use this method to return the type of the value.
Parameters
None.
Returns
Integer.
List of numeric values and the corresponding value types.
| Numeric Value | Value Types |
|---|---|
|
0 |
JSON_VALUE_INVALID |
|
1 |
JSON_VALUE_INT |
|
2 |
JSON_VALUE_FLOAT |
|
3 |
JSON_VALUE_DOUBLE |
|
4 |
JSON_VALUE_NUMBER |
|
5 |
JSON_VALUE_BOOLEAN |
|
6 |
JSON_VALUE_STRING |
|
7 |
JSON_VALUE_NULL |
|
8 |
JSON_VALUE_DATE |
|
9 |
JSON_VALUE_TIME |
|
10 |
JSON_VALUE_DATETIME |
Example
Local JsonNode &jNode = CreateJsonNode();
Local integer &nodeValue = &jNode.GetValueType();