I (unfortunately) have to deserialize a structure which looks like the following.
"divisions": {
(key): {
"name": string,
"alsoKnownAs": [string],
"officeIndices": [unsigned integer]
}
},
I only care about the value of
(key)
which is a dynamic string. I was originally deserializing this to a
Map<String, String>
but for obvious reasons ran into edge cases when the
alsoKnownAs
and
officeIndices
fields came back in a response.
Is there a way to deserialize to
Any?
if I don't care about the actual value here, only the key?