Skip to main content

format_json

Function format_json 

Source
pub fn format_json(doc: &Document) -> String
Expand description

Format a document as agent-friendly JSON.

Returns an error message in the output if serialization fails (should not happen for well-formed Document values).