ParseOptions

external interface ParseOptions(source)

Options to customize JSON input parsing.

Properties

Link copied to clipboard

Allow or disallow duplicated keys in objects.

Link copied to clipboard

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

Link copied to clipboard
abstract val ignoreBOM: Boolean?

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

Link copied to clipboard
abstract val ignoreComments: Boolean?

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

Link copied to clipboard

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

Link copied to clipboard
abstract val mode: ParseMode?

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

Link copied to clipboard
abstract val reviver: <Error class: unknown class>?

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