Sign in Join
FPDoc Onlineexperiment

TFormatOption enumeration

In unit fpJson

Formatting options for FormatJSON.

Declaration

pascal
TFormatOption = (foSingleLineArray,foSingleLineObject,
 foDoNotQuoteMembers,foUseTabchar,foSkipWhiteSpace,
 foSkipWhiteSpaceOnlyLeading,foForceLF,foFormatFloat)

Description

TFormatOption enumerates the various formatting options that can be used in the FormatJSON function.

See also

Values

foSingleLineArrayKeep all array elements on a single line.
foSingleLineObjectKeep all object elements on a single line.
foDoNotQuoteMembersDo not use quote characters around object member names.
foUseTabcharUse the tabulator character for indents.
foSkipWhiteSpaceSkip whitespace.
foSkipWhiteSpaceOnlyLeadingOnly skip leading whitespace when formatting JSON.
foForceLF
foFormatFloat

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.