Function render_json

Source
pub fn render_json<W>(document: &Document, stream: W) -> Result<(), Error>
where W: Write,
Expand description

Render a document tree as JSON.

§Errors

Returns an error if serialization fails.