Skip to content

peWhitespace - cJsonObject

Controls if/how whitespace is added to the generated JSON when calling the Stringify function

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer peWhitespace
Access Type Syntax
Read Access: Get peWhitespace to IntegerVariable
Write Access: Set peWhitespace to IntegerVariable/Value

Description

This property controls if/how whitespace is added to the generated JSON when calling the Stringify function. It should be set on the object where Stringify is called, setting it on parent objects does not work.

Valid values:

Constant Meaning
jpWhitespace_Plain No whitespace is added. The most optimal setting. (default)
jpWhitespace_Spaced Spaces are added between property names and their values.
jpWhitespace_Pretty The most readable format with line feeds and indention spaces.