Eventually, I went with this solution – https://forums.swift.org/t/pitch-unkeyeddecodingcontainer-movenext-to-skip-items-in-deserialization/22151/17 (thanks to @Larme)
struct Empty: Decodable { }
extension UnkeyedDecodingContainer {
public mutating func skip() throws {
_ = try decode(Empty.self)
}
}
CLICK HERE to find out more related problems solutions.