toDocument

inline fun String.toDocument(): Document
inline fun JsonObject.toDocument(): Document


fun Source.toDocument(): Document

Streams a Document directly from a byte Source, avoiding the intermediate decoded-String copy that String.toDocument would create.