Udostępnij za pośrednictwem


JSONStringer.Value Method

Definition

Overloads

Value(Object)

Encodes value.

Value(Boolean)

Encodes value to this stringer.

Value(Double)

Encodes value to this stringer.

Value(Int64)

Encodes value to this stringer.

Value(Object)

Encodes value.

[Android.Runtime.Register("value", "(Ljava/lang/Object;)Lorg/json/JSONStringer;", "GetValue_Ljava_lang_Object_Handler")]
public virtual Org.Json.JSONStringer? Value (Java.Lang.Object? value);
[<Android.Runtime.Register("value", "(Ljava/lang/Object;)Lorg/json/JSONStringer;", "GetValue_Ljava_lang_Object_Handler")>]
abstract member Value : Java.Lang.Object -> Org.Json.JSONStringer
override this.Value : Java.Lang.Object -> Org.Json.JSONStringer

Parameters

value
Object

a JSONObject, JSONArray, String, Boolean, Integer, Long, Double or null. May not be Double#isNaN() NaNs or Double#isInfinite() infinities.

Returns

this stringer.

Attributes

Exceptions

Remarks

Encodes value.

Java documentation for org.json.JSONStringer.value(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

Value(Boolean)

Encodes value to this stringer.

[Android.Runtime.Register("value", "(Z)Lorg/json/JSONStringer;", "GetValue_ZHandler")]
public virtual Org.Json.JSONStringer? Value (bool value);
[<Android.Runtime.Register("value", "(Z)Lorg/json/JSONStringer;", "GetValue_ZHandler")>]
abstract member Value : bool -> Org.Json.JSONStringer
override this.Value : bool -> Org.Json.JSONStringer

Parameters

value
Boolean

a finite value. May not be Double#isNaN() NaNs or Double#isInfinite() infinities.

Returns

this stringer.

Attributes

Exceptions

Remarks

Encodes value to this stringer.

Java documentation for org.json.JSONStringer.value(boolean).

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

Value(Double)

Encodes value to this stringer.

[Android.Runtime.Register("value", "(D)Lorg/json/JSONStringer;", "GetValue_DHandler")]
public virtual Org.Json.JSONStringer? Value (double value);
[<Android.Runtime.Register("value", "(D)Lorg/json/JSONStringer;", "GetValue_DHandler")>]
abstract member Value : double -> Org.Json.JSONStringer
override this.Value : double -> Org.Json.JSONStringer

Parameters

value
Double

a finite value. May not be Double#isNaN() NaNs or Double#isInfinite() infinities.

Returns

this stringer.

Attributes

Exceptions

Remarks

Encodes value to this stringer.

Java documentation for org.json.JSONStringer.value(double).

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

Value(Int64)

Encodes value to this stringer.

[Android.Runtime.Register("value", "(J)Lorg/json/JSONStringer;", "GetValue_JHandler")]
public virtual Org.Json.JSONStringer? Value (long value);
[<Android.Runtime.Register("value", "(J)Lorg/json/JSONStringer;", "GetValue_JHandler")>]
abstract member Value : int64 -> Org.Json.JSONStringer
override this.Value : int64 -> Org.Json.JSONStringer

Parameters

value
Int64

a finite value. May not be Double#isNaN() NaNs or Double#isInfinite() infinities.

Returns

this stringer.

Attributes

Exceptions

Remarks

Encodes value to this stringer.

Java documentation for org.json.JSONStringer.value(long).

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