JSON

external object JSON

Exposes the JavaScript JSON object to Kotlin.

Functions

Link copied to clipboard
fun <T> parse(text: String): T
fun <T> parse(text: String, reviver: (key: String, value: Any?) -> Any?): T
Link copied to clipboard
fun stringify(o: Any?): String
fun stringify(o: Any?, replacer: Array<String>): String
fun stringify(o: Any?, replacer: (key: String, value: Any?) -> Any?): String
fun stringify(    o: Any?,     replacer: Array<String>,     space: Int): String
fun stringify(    o: Any?,     replacer: Array<String>,     space: String): String
fun stringify(    o: Any?,     replacer: (key: String, value: Any?) -> Any?? = definedExternally,     space: Int): String
fun stringify(    o: Any?,     replacer: (key: String, value: Any?) -> Any?? = definedExternally,     space: String): String