getPrettyPrintedString

fun <Error class: unknown class>?.getPrettyPrintedString(): String

Returns the JSONObject.toString result if possible. Returns an empty string if the input JSONObject is null or on any thrown Throwable.


fun <Error class: unknown class>?.getPrettyPrintedString(): String

Returns the JSONArray.toString result if possible. Returns an empty string if the input JSONArray is null or on any thrown Throwable.