ArcObjects Library Reference (System)  

IJSONArray Interface

Provides simplified DOM-like JSON serialization and de-serialization API.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Method Add Adds new variant value to the array.
Method AddBoolean Adds new boolean value to the array.
Method AddDate Adds new DATE value to the array.
Method AddDouble Adds new double value to the array.
Method AddJSONArray Adds new nested array to the array.
Method AddJSONObject Adds new nested object to the array.
Method AddLong Adds new long value to the array.
Method AddNull Adds new null value to the array.
Method AddString Adds new string value to the array.
Method ClearAll Removes all values.
Read-only property Count Returns an array size.
Method CreateMemberArray Creates and adds new member to the member collection. Returns E_FAIL if creation of the member fails.
Method CreateMemberObject Creates and adds new member to the member collection. Returns E_FAIL if creation of the member fails.
Method IsValueNull Checks if an array value at a given index is NULL.
Method ParseJSON Parses JSON array from IJSONReader into memory. Useful if you want to have random acces to just a part of a JSON.
Method ParseString Parses JSON array from string into memory.
Method RemoveValue Remove a value from the member collection.
Method 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.
Method ToJSONString Converts IJSONArray to JSON representation using IJSONWriter internally. 'props' parameter is to control IJSONWriter properties. It's safe to set it to NULL.
Method 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.
Method 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.
Method 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.
Method 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.
Method 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.
Method 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.
Method 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.
Read-only property Value Returns an array value at a given index. Returns E_INVALIDARG if index is out of bounds.

CoClasses that implement IJSONArray

CoClasses and Classes Description
JSONArray Simplified JSON API coclass