toJson

inline fun <T> T.toJson(indent: String = ""): String
inline fun <T> T.toJson(file: File, indent: String = "")