MagicMisc

open class MagicMisc

Miscellaneous utility methods.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
open fun takeFirst(str: String, count: Int): String
Returns the first count characters of the given string.
Link copied to clipboard
open fun toList(array: JSONArray): List<Any>
Converts a JSONArray to a List.
Link copied to clipboard
open fun toMap(jsonObj: JSONObject): Map<String, Any>
Converts a JSONObject to a Map.