json class : IsArray getter

Description

Gets a value indicating whether the instance is an array.

Syntax

jsonInstance.IsArray

Arguments

None

Return value

ClassDescription
boolA 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.

Copyright © Cooker All rights reserved.