TFormatOption¶
Formatting options for FormatJSON.
Declaration¶
Source position: fpjson.pp line 80
type
TFormatOption = (foSingleLineArray,foSingleLineObject,
foDoNotQuoteMembers,foUseTabchar,foSkipWhiteSpace,
foSkipWhiteSpaceOnlyLeading,foForceLF,foFormatFloat)Values¶
| Value | Description |
|---|---|
| foSingleLineArray | Keep all array elements on a single line. |
| foSingleLineObject | Keep all object elements on a single line. |
| foDoNotQuoteMembers | Do not use quote characters around object member names. |
| foUseTabchar | Use the tabulator character for indents. |
| foSkipWhiteSpace | Skip whitespace. |
| foSkipWhiteSpaceOnlyLeading | Only skip leading whitespace when formatting JSON. |
| foForceLF | |
| foFormatFloat |
Description¶
TFormatOption enumerates the various formatting options that can be used in the TJSONData.FormatJSON function.
See also¶
| Name | Description |
|---|---|
| TJSONData.FormatJSON | Return a formatted JSON representation of the data. |