vmironov
10/12/2016, 12:41 PMfromJson2
function must be inlined and reified:
inline fun <reified T : Any> fromJson2(jsonString: String ) : List<T> {
val JSON = ObjectMapper().registerModule(KotlinModule())
val myList = JSON.readValue<List<T>>(jsonString)
return myList
}