Lenguaje

JSONArray.OptJSONObject(Int32) Método

Definición

Devuelve el valor en index si existe y es .JSONObject

[Android.Runtime.Register("optJSONObject", "(I)Lorg/json/JSONObject;", "GetOptJSONObject_IHandler")]
public virtual Org.Json.JSONObject? OptJSONObject(int index);
[<Android.Runtime.Register("optJSONObject", "(I)Lorg/json/JSONObject;", "GetOptJSONObject_IHandler")>]
abstract member OptJSONObject : int -> Org.Json.JSONObject
override this.OptJSONObject : int -> Org.Json.JSONObject

Parámetros

index
Int32

Devoluciones

Atributos

Comentarios

Devuelve el valor en index si existe y es .JSONObject Devuelve null de lo contrario.

Java documentación para org.json.JSONArray.optJSONObject(int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a