Skip to main content

to_json

Function to_json 

Source
pub fn to_json(text: &str, indent: usize) -> Result<String, DeclError>
Expand description

The JSON text of a document given as JSON text: canonical for indent 0, laid out with indent spaces per level otherwise (docs/tooling/05_render.md §4.1).