parse

external fun parse(input: String): ERROR CLASS: Symbol not found for ReadonlyRecord<kotlin/String, kotlin/Any?>(source)
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?>(source)
external fun parse(input: String, options: ParseOptions = definedExternally): ERROR CLASS: Symbol not found for ReadonlyRecord<kotlin/String, kotlin/Any?>(source)

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

Parameters

input
  • a string input to parse

reviverOrOptions
  • either a value reviver or an object with multiple options