toJsonString

abstract fun toJsonString(obj: Any?): String

Serializes an object to a JSON string.