Lenguaje

JSONArray.GetJSONObject(Int32) Método

Definición

Devuelve el valor en index si existe y es .JSONObject

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

Parámetros

index
Int32

Índice del valor que se ha de devolver.

Devoluciones

en JSONObjectindex.

Atributos

Excepciones

si el valor no existe o no es .JSONObject

Comentarios

Devuelve el valor en index si existe y es .JSONObject

Java documentación para org.json.JSONArray.getJSONObject(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