Provides simplified DOM-like JSON serialization and de-serialization API.
Members
| Name | Description | |
|---|---|---|
![]()  | 
Add | Adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
AddBoolean | Adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
AddDate | Adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
AddDouble | Adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
AddDoubleEx | Adds new member name-value pair to the member collection. Stores precision for use in ToJSON and ToJSONString. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
AddInt64 | Adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
AddJSONArray | Adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
AddJSONObject | Adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
AddLong | Adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
AddNull | Adds new member with the value of null to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
AddString | Adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
AddUInt64 | Adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
CaseSensitiveNames | Returns true if member name lookups are case-sensitive. Default value is true. Methods affected by this state change: MemberExists, IsValueNull and all TryGet... methods. | 
![]()  | 
ClearAll | Removes all members. | 
![]()  | 
CreateMemberArray | Creates and adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
CreateMemberObject | Creates and adds new member name-value pair to the member collection. Returns E_​FAIL if duplicate member is found. | 
![]()  | 
GetMemberAt | Returns member name and value at a given index. | 
![]()  | 
IsValueNull | Returns VARIANT​TRUE if member is undefined or member's value is null. Returns VARIANT​FALSE if member exists and its value is not null. | 
![]()  | 
MakeValueNull | Make a designated member NULL. | 
![]()  | 
MemberCount | Returns size of member collection. | 
![]()  | 
MemberExists | Checks if a member with the given name exists. | 
![]()  | 
ParseJSON | Parses JSON object from IJSONReader into memory. Useful if you want to have random access to just a part of a JSON. | 
![]()  | 
ParseString | Parses JSON object from string into memory. | 
![]()  | 
RemoveMember | Remove a member from the member collection. | 
![]()  | 
ToJSON | Converts IJSONObject 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 IJSONObject to JSON representation using IJSONWriter internally. 'props' parameter is to control IJSONWriter properties. It's safe to set it to NULL. | 
![]()  | 
TryGetValue | Returns member value for a given name. If member does not exist, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsArray | Returns member value for a given name as IJSONArray. If member does not exist or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsBoolean | Returns member value for a given name as boolean. If member does not exist or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsDate | Returns member value for a given name as DATE. If member does not exist or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsDouble | Returns member value for a given name as double. If member does not exist or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsInt64 | Returns member value for a given name as LONGLONG. If member does not exist or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsLong | Returns member value for a given name as long. If member does not exist or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsObject | Returns member value for a given name as IJSONObject. If member does not exist or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsString | Returns member value for a given name as string. If member does not exist or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsUInt64 | Returns member value for a given name as ULONGLONG. If member does not exist or type coercion fails, returns VARIANT_​FALSE in 'success' parameter. | 
![]()  | 
TryGetValueAsVariant | Returns member value for a given name as a VARIANT of the requested type. If member does not exist, returns VARIANT_​FALSE in 'success' parameter. | 
IJSONObject2.AddInt64 Method
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.
Public Sub AddInt64 ( _
    ByVal Name As String, _
    ByVal Value As Long _
)
public void AddInt64 (
    string Name,
    long Value
);
IJSONObject2.AddUInt64 Method
Adds new member name-value pair to the member collection. Returns E_FAIL if duplicate member is found.
Public Sub AddUInt64 ( _
    ByVal Name As String, _
    ByVal Value As Long _
)
public void AddUInt64 (
    string Name,
    ulong Value
);
IJSONObject2.TryGetValueAsInt64 Method
Returns member value for a given name as LONGLONG. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.
Public Function TryGetValueAsInt64 ( _
    ByVal Name As String, _
    ByRef Value As Int64& _
) As Boolean
public bool TryGetValueAsInt64 (
    string Name,
    ref Int64& Value
);
IJSONObject2.TryGetValueAsUInt64 Method
Returns member value for a given name as ULONGLONG. If member does not exist or type coercion fails, returns VARIANT_FALSE in 'success' parameter.
Public Function TryGetValueAsUInt64 ( _
    ByVal Name As String, _
    ByRef Value As UInt64& _
) As Boolean
public bool TryGetValueAsUInt64 (
    string Name,
    ref UInt64& Value
);
IJSONObject2.TryGetValueAsVariant Method
Returns member value for a given name as a VARIANT of the requested type. If member does not exist, returns VARIANT_FALSE in 'success' parameter.
Public Function TryGetValueAsVariant ( _
    ByVal Name As String, _
    ByVal variantType As Integer, _
    ByRef Value As Object _
) As Boolean
public bool TryGetValueAsVariant (
    string Name,
    int variantType,
    ref object Value
);
Inherited Interfaces
| Interfaces | Description | 
|---|---|
| IJSONObject | Provides simplified DOM-like JSON serialization and de-serialization API. | 
Classes that implement IJSONObject2
| Classes | Description | 
|---|---|
| JSONObject | Simplified JSON API coclass | 


