关于 swift 和 JSON 的注意事项

let decoder = JSONDecoder()
decoder.keyDecodingStrategy = .convertFromSnakeCase

配置了convert from snake case之后不能配置CodingKeys

posted on 2025-04-20 20:43  Erica-Iris  阅读(18)  评论(0)    收藏  举报

导航