1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-15 06:15:27 +00:00
tgbotapi/tgbotapi.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/JsonFormat.kt

13 lines
315 B
Kotlin
Raw Normal View History

package dev.inmo.tgbotapi.extensions.utils
2020-05-13 14:01:58 +00:00
import kotlinx.serialization.json.Json
@Suppress("EXPERIMENTAL_API_USAGE")
internal val nonstrictJsonFormat = Json {
isLenient = true
ignoreUnknownKeys = true
2020-08-18 06:50:11 +00:00
allowSpecialFloatingPointValues = true
2020-05-13 14:01:58 +00:00
useArrayPolymorphism = true
2020-09-22 05:33:47 +00:00
encodeDefaults = true
2020-05-13 14:01:58 +00:00
}