json class : IsArray getter
Description
Gets a value indicating whether the instance is an array.
Syntax
jsonInstance.IsArray
Arguments
None
Return value
Class | Description |
bool | A value indicating whether the instance is an array. |
Sample code
1: | json jsonIns = new json("{@name@:@suzuki@,@age@:1}".Replace("@","".DQ)); // object |
2: | bool array = jsonIns.IsArray; // false |
3: | jsonIns = new json("[@name@,true,1000,null]".Replace("@","".DQ)); // array |
4: | array = jsonIns.IsArray; // true |
Notes
Returns true if the instance is an array. Otherwise it returns false.
Links for reference
None.