toJson

fun toJson(value: Any): String

Converts an object to a JSON string.

Return

The JSON string representation of the object.

Parameters

value

The object to convert.

Throws

If there is an error processing the object.