·swift-codable-json
</>

swift-codable-json

dagba/ios-mcp

當使用 Codable 實現 JSON 編碼/解碼、處理 API 響應、遇到解碼錯誤、管理日期格式、將 Snake_case 映射到 CamelCase 或處理嵌套/不一致的 JSON 結構時使用

14安裝·0熱度·@dagba

安裝

$npx skills add https://github.com/dagba/ios-mcp --skill swift-codable-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