Kotlinx.serialization iOS did myself dirty today, in a callback scenario it doesn't work for JsonObject that have JsonObject or JsonArray nested it interop them as List or Map so the underlying cast fail.. Had to wrap it to avoid it and add a custom toMap function on kotlin side