Skip to content

TJSONOption

JSON scanner options

Declaration

Source position: jsonscanner.pp line 60

type
  TJSONOption = (joUTF8,joStrict,joComments,joIgnoreTrailingComma,
               joIgnoreDuplicates,joBOMCheck,joSingle)

Values

Value Description
joUTF8 UTF8 string encoding option
joStrict Strict JSON parsing option
joComments Allow comments option
joIgnoreTrailingComma Ignore trailing comma option
joIgnoreDuplicates Ignore duplicate keys option
joBOMCheck Check byte order mark option
joSingle Single value parsing option

Description

Enumeration of options that control the behavior of the JSON scanner. These options can be combined in a TJSONOptions set.

joUTF8
Return strings with UTF8 codepage
joStrict
Use strict JSON parsing (require quotes around object member names)
joComments
Allow JavaScript-style comments in JSON
joIgnoreTrailingComma
Ignore trailing commas in arrays and objects
joIgnoreDuplicates
Do not attempt to add duplicate object members
joBOMCheck
Check for byte order mark at beginning of stream
joSingle
Read only a single JSON value from the stream

See also

Name Description
TJSONOptions Set of JSON scanner options
DefaultOptions Default scanner options
TJSONScanner JSON lexical scanner