JSON

external object JSON(source)

Exposes the JavaScript JSON object to Kotlin.

Since Kotlin

1.1

Functions

Link copied to clipboard
fun <T> parse(text: String): T
fun <T> parse(text: String, reviver: (key: String, value: Any?) -> Any?): T
Since Kotlin 1.1
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
Since Kotlin 1.1