toJson

inline fun <T : Any> toJson(value: T?, prettyPrint: Boolean = false): String(source)
inline fun <T : Any> toJson(path: Path, value: T?, prettyPrint: Boolean = false)(source)
inline fun <T : Any> toJson(file: File, value: T?, prettyPrint: Boolean = false)(source)
inline fun <T : Any> toJson(sink: BufferedSink, value: T?, prettyPrint: Boolean = false)(source)