Trond Tunheim
02/19/2020, 9:34 AMval json = Json(JsonConfiguration.Stable)
var testJson = json.parse<JobInit>("{\"jobId\":\"j8203f1c50abe46338fa4d8955405949e\",\"jobStatus\":\"JobSubmitted\"}")
@Serializable
data class JobInit (val jobId : String = "", val jobStatus : String ="")
When running in RELEASE I get the following exception :
Uncaught Kotlin exception: kotlinx.serialization.json.JsonDecodingException: Invalid JSON at 0: Expected '[, kind: LIST'
Anyone else had this problem or know what is wrong ?
I'm using "org.jetbrains.kotlinxkotlinx serialization runtime native0.14.0"sandwwraith
02/26/2020, 4:50 PM