GeneratorOptions

Flags for configuring the JSON generator.

These flags can be combined using a bitwise or operation.

Values

ValueMeaning
init0

Default value - enable none of the supported options

compact1 << 0

Avoid outputting whitespace to get a compact string representation

specialFloatLiterals1 << 1

Output special float values as 'NaN' or 'Infinity' instead of 'null'

escapeUnicode1 << 2

Output all non-ASCII characters as unicode escape sequences

Meta