gildor
04/02/2018, 4:20 PMTalon
04/02/2018, 7:29 PMfun getItems() = Promise({ resolve : (Items) -> Unit, _ ->
resolve(Items(JSON.parse(cdItems)))
})
Talon
04/02/2018, 7:43 PMTalon
04/02/2018, 8:02 PMval nums : Array<Int> = JSON.parse("[1,2,3,4]")
this is also enough to cause this missing companion object erroranton.bannykh
04/03/2018, 10:45 AMsandwwraith
04/03/2018, 11:10 AMlist
is generic and doesn’t have companion object, serializer for it must be specified explicitly (https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/runtime_usage.md#obtaining-serializers)sandwwraith
04/03/2018, 11:11 AMval nums: List<Int> = JSON.parse(ArrayListSerializer(IntSerializer), "[1,2,3,4]")