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>
[src]

Construct a pretty printer formatter that defaults to using two spaces for indentation.

Construct a pretty printer formatter that uses the indent string for indentation.

Trait Implementations

impl<'a> Default for PrettyFormatter<'a>
[src]

Returns the "default value" for a type. Read more

impl<'a> Formatter for PrettyFormatter<'a>
[src]

Called when serializing a '{' or '['.

Called when serializing a ','.

Called when serializing a ':'.

Called when serializing a '}' or ']'.