JSONObject.ToString(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encodes this object 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 object as a human readable JSON string for debugging, such as:
{
"query": "Pizza",
"locations": [
94043,
90210
]
}
Java documentation for org.json.JSONObject.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.