toJSONString

abstract fun toJSONString(): String

The toJSONString method allows a class to produce its own JSON serialization.

Return

A strictly syntactically correct JSON text.