Generator.pretty

bool pretty() @property

Get pretty property.

Returns

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.

void pretty(bool propval) @property

Set pretty property.

Parameters

propvalWhether the output should be "pretty-printed", with indentation and newlines. The indentation level can be controlled by using the [json.generator.Generator.indent] property.