From 3e491ba7f10d8223a3b8e5d915573a171b947d26 Mon Sep 17 00:00:00 2001 From: develar Date: Tue, 19 Jun 2012 19:28:58 +0400 Subject: [PATCH] https://developer.mozilla.org/en/JSON (cherry picked from commit f91d3a8) --- js/js.libraries/src/core/json.kt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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