aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/utils/JSON.kt
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2019-01-28 17:54:05 +0100
committerRobert Jaros <rjaros@finn.pl>2019-01-28 17:54:05 +0100
commit960e60e24734fec82e21144502cf971423df9e62 (patch)
tree7eeaacd6c084be7db15e46beac1e988674020477 /src/main/kotlin/pl/treksoft/kvision/utils/JSON.kt
parent378b2437bf95e0e01462b702a26bebe7d6a3b185 (diff)
downloadkvision-960e60e24734fec82e21144502cf971423df9e62.tar.gz
kvision-960e60e24734fec82e21144502cf971423df9e62.tar.bz2
kvision-960e60e24734fec82e21144502cf971423df9e62.zip
Dependencies upgrade (Kotlin 1.3.20 and others).
Fixed deprecations.
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/utils/JSON.kt')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/utils/JSON.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/utils/JSON.kt b/src/main/kotlin/pl/treksoft/kvision/utils/JSON.kt
index a826d343..4dc1ccd9 100644
--- a/src/main/kotlin/pl/treksoft/kvision/utils/JSON.kt
+++ b/src/main/kotlin/pl/treksoft/kvision/utils/JSON.kt
@@ -23,18 +23,18 @@ package pl.treksoft.kvision.utils
import kotlinx.serialization.ImplicitReflectionSerializer
import kotlinx.serialization.context.SimpleModule
-import kotlinx.serialization.json.JSON
+import kotlinx.serialization.json.Json
import kotlinx.serialization.serializer
import pl.treksoft.kvision.types.DateSerializer
import kotlin.js.Date
object JSON {
- val plain = JSON().apply {
+ val plain = Json().apply {
install(SimpleModule(Date::class, DateSerializer))
}
- val nonstrict = JSON(strictMode = false).apply {
+ val nonstrict = Json(strictMode = false).apply {
install(SimpleModule(Date::class, DateSerializer))
}