Condividi tramite


JSONArray.OptJSONArray(Int32) Method

Definition

Returns the value at index if it exists and is a JSONArray.

[Android.Runtime.Register("optJSONArray", "(I)Lorg/json/JSONArray;", "GetOptJSONArray_IHandler")]
public virtual Org.Json.JSONArray? OptJSONArray (int index);
[<Android.Runtime.Register("optJSONArray", "(I)Lorg/json/JSONArray;", "GetOptJSONArray_IHandler")>]
abstract member OptJSONArray : int -> Org.Json.JSONArray
override this.OptJSONArray : int -> Org.Json.JSONArray

Parameters

index
Int32

Returns

Attributes

Remarks

Returns the value at index if it exists and is a JSONArray. Returns null otherwise.

Java documentation for org.json.JSONArray.optJSONArray(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to