JSONObject.Get(String) Method

Definition

Returns the value mapped by name, or throws if no such mapping exists.

[Android.Runtime.Register("get", "(Ljava/lang/String;)Ljava/lang/Object;", "GetGet_Ljava_lang_String_Handler")]
public virtual Java.Lang.Object Get (string name);
[<Android.Runtime.Register("get", "(Ljava/lang/String;)Ljava/lang/Object;", "GetGet_Ljava_lang_String_Handler")>]
abstract member Get : string -> Java.Lang.Object
override this.Get : string -> Java.Lang.Object

Parameters

name
String

Returns

Attributes

Exceptions

if no such mapping exists.

Remarks

Returns the value mapped by name, or throws if no such mapping exists.

Java documentation for org.json.JSONObject.get(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