getPrettyPrintedString

fun JSONObject?.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 JSONArray?.getPrettyPrintedString(): String

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