ParseOptions

external interface ParseOptions(source)

Options to customize JSON input parsing.

Properties

Link copied to clipboard
abstract external val allowDuplicateObjectKeys: Boolean?

Allow or disallow duplicated keys in objects.

Link copied to clipboard
abstract external val allowSingleQuotedStrings: Boolean?

Allow quotes around strings to be single quotes (JSON5).

Link copied to clipboard
abstract external val ignoreBOM: Boolean?

Ignore the leading BOM in the JSON input, if it is detected.

Link copied to clipboard
abstract external val ignoreComments: Boolean?

Ignore comments in the JSON input (CJSON, JSON5).

Link copied to clipboard
abstract external val ignoreTrailingCommas: Boolean?

Ignore trailing commas after the last item in objects and arrays in the JSON input (JSON5).

Link copied to clipboard
abstract external val mode: ParseMode?

Set the JSON parsing mode as a shortcut for setting multiple parsing options.

Link copied to clipboard
abstract external val reviver: Reviver?

Transform the value, which was parsed for a particular object key from the JSON input.