Generator.setPretty

void setPretty(bool isPretty)

Sets whether the generated JSON should be pretty printed.

Pretty printing will use indentation character specified in the [json.generator.Generator.indent] property and the spacing specified in the [json.generator.Generator.indent] property.

Parameters

isPrettywhether the generated string should be pretty printed