toJson

fun toJson(): String

Returns the JSON representation of the document.