Sign in Join
FPDoc Onlineexperiment

TJSONOption enumeration

In unit JsonScanner

JSON scanner options

Declaration

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

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

Values

joUTF8UTF8 string encoding option
joStrictStrict JSON parsing option
joCommentsAllow comments option
joIgnoreTrailingCommaIgnore trailing comma option
joIgnoreDuplicatesIgnore duplicate keys option
joBOMCheckCheck byte order mark option
joSingleSingle value parsing option

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