swift-codable-json
✓当使用 Codable 实现 JSON 编码/解码、处理 API 响应、遇到解码错误、管理日期格式、将 Snake_case 映射到 CamelCase 或处理嵌套/不一致的 JSON 结构时使用
SKILL.md
Codable provides type-safe JSON parsing but strict typing means any mismatch crashes decoding. One date strategy per decoder, CodingKeys for every naming mismatch, custom decoders for nested structures.
Core principle: Design for API reality (not ideal JSON), fail gracefully with error handling, use optionals for unreliable data.
Rule: Every property must appear in CodingKeys, even if name matches.
当使用 Codable 实现 JSON 编码/解码、处理 API 响应、遇到解码错误、管理日期格式、将 Snake_case 映射到 CamelCase 或处理嵌套/不一致的 JSON 结构时使用 来源:dagba/ios-mcp。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/dagba/ios-mcp --skill swift-codable-json- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 swift-codable-json?
当使用 Codable 实现 JSON 编码/解码、处理 API 响应、遇到解码错误、管理日期格式、将 Snake_case 映射到 CamelCase 或处理嵌套/不一致的 JSON 结构时使用 来源:dagba/ios-mcp。
如何安装 swift-codable-json?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dagba/ios-mcp --skill swift-codable-json 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/dagba/ios-mcp
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01