DJ
06/04/2022, 1:05 AM$schema
key at the top level. I am parsing it into a Map<String, Def>
(Def is a class I have defined), so when the string value in the $schema
key is encountered, it throws an exception. I simply want to ignore the value of the $scheam
key, what is the best way to do this?kotlinforandroid
06/04/2022, 6:21 AMJson { ignoreUnknownKeys = true }.decodeFromString("...")
DJ
06/04/2022, 11:23 AM$schema
key is at the top level, the level I am trying to deserialize into a Map. Additionally, I do want the unknown key checking.