← Docs
kotlin-stdlib / kotlin.js / json

json

JS
1.1
fun json ( vararg pairs : <ERROR CLASS> < String , Any ? > ) : Json
(source)

Returns a simple JavaScript object (as Json ) using provided key-value pairs as names and values of its properties.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .