Compartilhar via


JSONArray.ToString(Int32) Method

Definition

Encodes this array as a human readable JSON string for debugging, such as:

[Android.Runtime.Register("toString", "(I)Ljava/lang/String;", "GetToString_IHandler")]
public virtual string? ToString (int indentSpaces);
[<Android.Runtime.Register("toString", "(I)Ljava/lang/String;", "GetToString_IHandler")>]
override this.ToString : int -> string

Parameters

indentSpaces
Int32

the number of spaces to indent for each level of nesting.

Returns

Attributes

Exceptions

Remarks

Encodes this array as a human readable JSON string for debugging, such as:

[
                94043,
                90210
            ]

Java documentation for org.json.JSONArray.toString(int).

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