<@U0B8ZP13Q> Thanks for the tip :slightly_smiling_...
# announcements
b
@cedric Thanks for the tip 🙂 You know what, after thinking (maybe too much) about this, I ended up doing this:
Copy code
fun Any?.toJsonString(): String {
    if (this == null) return "null"
    val gson = GsonBuilder().setPrettyPrinting().create()
    return gson.toJson(this)
}