Im stuck at what probably has a simple solution.
I have a string representation of a list, like this:
"[[1, 2, 3], [4, 5, 6]]"
In other words, a list containing 2 lists of 3 integers
How to convert the string to a list object of List<List> in Kotlin?
You can use
kotlinx.serializationto deserialize JSON!As a standalone Kotlin script:
In an Android app's
build.gradleyou would need these lines instead of@file:DependsOn: