toJson

open fun toJson(): String

Converts value to a JSON string. The method is intended to be used when `machine-readable` string is needed.

Return

The value converted to a JSON string.