Dela via


JSONObject.Append(String, Object) Method

Definition

Appends values to the array mapped to name.

[Android.Runtime.Register("append", "(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;", "GetAppend_Ljava_lang_String_Ljava_lang_Object_Handler", ApiSince=33)]
public virtual Org.Json.JSONObject Append (string name, Java.Lang.Object? value);
[<Android.Runtime.Register("append", "(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;", "GetAppend_Ljava_lang_String_Ljava_lang_Object_Handler", ApiSince=33)>]
abstract member Append : string * Java.Lang.Object -> Org.Json.JSONObject
override this.Append : string * Java.Lang.Object -> Org.Json.JSONObject

Parameters

name
String
value
Object

Returns

Attributes

Remarks

Appends values to the array mapped to name. A new JSONArray mapping for name will be inserted if no mapping exists. If the existing mapping for name is not a JSONArray, a JSONException will be thrown.

Java documentation for org.json.JSONObject.append(java.lang.String, java.lang.Object).

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