Package-level declarations

Types

Link copied to clipboard
sealed external interface ParseMode

JSON parsing modes, which are a shortcut for setting multiple parsing options.

Link copied to clipboard
external interface ParseOptions

Options to customize JSON input parsing.

Functions

Link copied to clipboard
external fun parse(input: String): ERROR CLASS: Symbol not found for ReadonlyRecord<kotlin/String, kotlin/Any?>
external fun parse(input: String, reviver: ERROR CLASS: Symbol not found for Reviver = definedExternally): ERROR CLASS: Symbol not found for ReadonlyRecord<kotlin/String, kotlin/Any?>
external fun parse(input: String, options: ParseOptions = definedExternally): ERROR CLASS: Symbol not found for ReadonlyRecord<kotlin/String, kotlin/Any?>

Parses a string formatted as JSON to a JSON output (primitive type, object or array). It is compatible with the native JSON.parse method.