다음을 통해 공유


JSONObject.OptJSONArray(String) Method

Definition

Returns the value mapped by name if it exists and is a JSONArray, or null otherwise.

[Android.Runtime.Register("optJSONArray", "(Ljava/lang/String;)Lorg/json/JSONArray;", "GetOptJSONArray_Ljava_lang_String_Handler")]
public virtual Org.Json.JSONArray? OptJSONArray (string? name);
[<Android.Runtime.Register("optJSONArray", "(Ljava/lang/String;)Lorg/json/JSONArray;", "GetOptJSONArray_Ljava_lang_String_Handler")>]
abstract member OptJSONArray : string -> Org.Json.JSONArray
override this.OptJSONArray : string -> Org.Json.JSONArray

Parameters

name
String

Returns

Attributes

Remarks

Returns the value mapped by name if it exists and is a JSONArray, or null otherwise.

Java documentation for org.json.JSONObject.optJSONArray(java.lang.String).

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