toJsonString

open fun toJsonString(source: Any): String

Converts the given object into a JSON formatted string.

Return

the converted value.

Parameters

source

the object to be converted.