Generator.pretty

Get pretty property.

  1. bool pretty [@property getter]
    class Generator
    @property
    bool
    pretty
    ()
  2. bool pretty [@property setter]

Return Value

Type: bool

Whether the output should be "pretty-printed", with indentation and newlines.

The indentation level can be controlled by using the json.generator.Generator.indent property.