Jan
06/01/2022, 6:21 PMJan
06/01/2022, 6:21 PMJson.decodeFromString<String>(
"""
[
]
""".trimIndent()
)
Jan
06/01/2022, 6:21 PMException in thread "main" kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 0: Expected beginning of the string, but got [
JSON input: [
]
Jan
06/01/2022, 6:22 PMDominaezzz
06/01/2022, 6:24 PMString
but that's not a string, hence the exception.Dominaezzz
06/01/2022, 6:25 PMJan
06/01/2022, 6:25 PMJan
06/01/2022, 6:26 PMDominaezzz
06/01/2022, 6:26 PMJan
06/01/2022, 6:26 PM