I have a json file I am parsing with ktx.serialization which has a `$schema` key at the top level. I...
d
I have a json file I am parsing with ktx.serialization which has a
$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?
k
Json { ignoreUnknownKeys = true }.decodeFromString("...")
d
That doesn't work since the
$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.