diff --git a/js/js.libraries/src/core/json.kt b/js/js.libraries/src/core/json.kt index 4b6429da4ae..54bb603c758 100644 --- a/js/js.libraries/src/core/json.kt +++ b/js/js.libraries/src/core/json.kt @@ -21,4 +21,13 @@ library("jsonFromTuples") fun json2(pairs : Array>) : Json = js.noImpl library("jsonAddProperties") -fun Json.add(other : Json) : Json = js.noImpl \ No newline at end of file +fun Json.add(other : Json) : Json = js.noImpl + +native +trait JsonClass { + fun stringify(o: Any): String = noImpl + fun parse(text: String): T = noImpl +} + +native +val JSON:JsonClass = noImpl \ No newline at end of file