ENCODING swift 中的异构 JSON 数组

问题描述 投票:0回答:0

我需要为具有如下异构对象的 API 创建一个 JSON 数组:

enter image description here

我正在编写满足这样的可编码协议代码的结构:

enter image description here

我需要上面标记线的解决方案

请帮忙

提前致谢。

我真的找不到任何解决方案,现在已经坚持了很多天

arrays json swift struct codable
© www.soinside.com 2019 - 2024. All rights reserved.