pub fn document_to_json(doc: &Document) -> Value
Converts an internal Document into a clean, client-friendly serde_json::Value.
Document
serde_json::Value