Skip to content

AsCompactJSON

Constant to format JSON with minimal whitespace and unquoted property names.

Declaration

Source position: fpjson.pp line 96

const
  AsCompactJSON = [foSingleLineArray, foSingleLineObject, foskipWhiteSpace, foDoNotQuoteMembers];

Description

AsCompressedJSON can be used to let FormatJSON behave as TJSONData.AsJSON with TJSONData.CompressedJSON equal to True and TJSONData.UnquotedMemberNames equal to True.

See also

Name Description
TJSONData.FormatJSON Return a formatted JSON representation of the data.
TJSONData.AsJSON Return a JSON representation of the value.
TJSONData.CompressedJSON Compress JSON - skip whitespace.