Struct serde_json::ser::PrettyFormatter
[−]
[src]
pub struct PrettyFormatter<'a> { // some fields omitted }
This structure pretty prints a JSON value to make it human readable.
Methods
impl<'a> PrettyFormatter<'a>
fn new() -> Self
Construct a pretty printer formatter that defaults to using two spaces for indentation.
fn with_indent(indent: &'a [u8]) -> Self
Construct a pretty printer formatter that uses the indent
string for indentation.