Provides simplified DOM-like JSON serialization and de-serialization API.
Members
| Name | Description | |
|---|---|---|
![]()  | 
Add | Adds new variant value to the array. | 
![]()  | 
AddBoolean | Adds new boolean value to the array. | 
![]()  | 
AddDate | Adds new DATE value to the array. | 
![]()  | 
AddDouble | Adds new double value to the array. | 
![]()  | 
AddDoubleEx | Adds new double value to the array. Stores precision for use in ToJSON and ToJSONString | 
![]()  | 
AddInt64 | Adds new variant value to the array. | 
![]()  | 
AddJSONArray | Adds new nested array to the array. | 
![]()  | 
AddJSONObject | Adds new nested object to the array. | 
![]()  | 
AddLong | Adds new long value to the array. | 
![]()  | 
AddNull | Adds new null value to the array. | 
![]()  | 
AddString | Adds new string value to the array. | 
![]()  | 
AddUInt64 | Adds new variant value to the array. | 
![]()  | 
ClearAll | Removes all values. | 
![]()  | 
Count | Returns an array size. | 
![]()  | 
CreateMemberArray | Creates and adds new member to the member collection. Returns E_​FAIL if creation of the member fails. | 
![]()  | 
CreateMemberObject | Creates and adds new member to the member collection. Returns E_​FAIL if creation of the member fails. | 
![]()  | 
IsValueNull | Checks if an array value at a given index is NULL. | 
![]()  | 
ParseJSON | Parses JSON array from IJSONReader into memory. Useful if you want to have random acces to just a part of a JSON. | 
![]()  | 
ParseString | Parses JSON array from string into memory. | 
![]()  | 
RemoveValue | Remove a value from the member collection. | 
![]()  | 
ToJSON | Converts IJSONArray to JSON representation using provided IJSONWriter. Useful when you have complex JSON response you want to combine from the output of several methods. | 
![]()  | 
ToJSONString | Converts IJSONArray to JSON representation using IJSONWriter internally. 'props' parameter is to control IJSONWriter properties. It's safe to set it to NULL. | 
![]()  | 
TryGetValueAsArray | Returns array value at a given index as IJSONArray. If index is out of bounds or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsBoolean | Returns array value at a given index as boolean. If index is out of bounds or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsDate | Returns array value at a given index as DATE. If index is out of bounds or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsDouble | Returns array value at a given index as double. If index is out of bounds or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsInt64 | Returns array value at a given index as LONGLONG. If index is out of bounds or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsLong | Returns array value at a given index as long. If index is out of bounds or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsObject | Returns array value at a given index as IJSONObject. If index is out of bounds or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsString | Returns array value at a given index as string. If index is out of bounds or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsUInt64 | Returns array value at a given index as ULONGLONG. If index is out of bounds or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsVariant | Returns array value at a given index as a VARIANT of the requested type. If index is out of bounds or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
Value | Returns an array value at a given index. Returns E_​INVALIDARG if index is out of bounds. | 
IJSONArray2.AddInt64 Method
Adds new variant value to the array.
Public Sub AddInt64 ( _
    ByVal Value As Long _
)
public void AddInt64 (
    long Value
);
IJSONArray2.AddUInt64 Method
Adds new variant value to the array.
Public Sub AddUInt64 ( _
    ByVal Value As Long _
)
public void AddUInt64 (
    ulong Value
);
IJSONArray2.TryGetValueAsInt64 Method
Returns array value at a given index as LONGLONG. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter.
Public Function TryGetValueAsInt64 ( _
    ByVal Index As Integer, _
    ByRef Value As Int64& _
) As Boolean
public bool TryGetValueAsInt64 (
    int Index,
    ref Int64& Value
);
IJSONArray2.TryGetValueAsUInt64 Method
Returns array value at a given index as ULONGLONG. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter.
Public Function TryGetValueAsUInt64 ( _
    ByVal Index As Integer, _
    ByRef Value As UInt64& _
) As Boolean
public bool TryGetValueAsUInt64 (
    int Index,
    ref UInt64& Value
);
IJSONArray2.TryGetValueAsVariant Method
Returns array value at a given index as a VARIANT of the requested type. If index is out of bounds or type coercion fails, returns VARIANT_FALSE in 'success' parameter.
Public Function TryGetValueAsVariant ( _
    ByVal Index As Integer, _
    ByVal variantType As Integer, _
    ByRef Value As Object _
) As Boolean
public bool TryGetValueAsVariant (
    int Index,
    int variantType,
    ref object Value
);
Inherited Interfaces
| Interfaces | Description | 
|---|---|
| IJSONArray | Provides simplified DOM-like JSON serialization and de-serialization API. | 
Classes that implement IJSONArray2
| Classes | Description | 
|---|---|
| JSONArray | Simplified JSON API coclass | 

