toJson

fun toJson(value: Any?): String(source)

Converts the given value to its JSON representation as a string.

Return

the JSON representation of the value as a string

Parameters

value

the value to convert to JSON