Generator.pretty

Set pretty property.

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

Parameters

propval 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.