Jason Inbody
07/17/2021, 9:51 PMKlaxon().parse<Map<String,Any>>(jsonString)!!
or
var map: Map<String, Any> = HashMap()
map = Gson().fromJson(jsonString, map.javaClass)Luis
07/17/2021, 11:53 PMephemient
07/18/2021, 12:34 AMephemient
07/18/2021, 12:37 AMephemient
07/18/2021, 12:38 AMPeter Mandeljc
07/18/2021, 1:08 AMephemient
07/18/2021, 1:28 AMephemient
07/18/2021, 1:29 AMNick Allen
07/18/2021, 10:25 PMAny? and it'll represent objects as Map, and arrays as List, and it will box primitives. Kinda awkward to pull information out but nice for integrating with libraries like Firebase that expect such a format.