JSONCodable:Swift中无忧的JSON编码和解码

时间:2021-04-12 19:17:02
【文件属性】:
文件名称:JSONCodable:Swift中无忧的JSON编码和解码
文件大小:90KB
文件格式:ZIP
更新时间:2021-04-12 19:17:02
Swift #JSONCodable Swift中无忧的JSON编码和解码 安装 只需将以下内容添加到您的并运行carthage update : github "matthewcheok/JSONCodable" ~> 3.0.1 或将以下内容添加到您的并运行pod install : pod 'JSONCodable', '~> 3.0.1' 或克隆为git子模块, 或仅将JSONCodable文件夹中的文件复制到您的项目中。 TLDR 使用协议扩展 错误处理 支持let属性 支持由兼容值支持的enum属性 变更记录 将编码和解码方法移至辅助类 JSONCodable由两个单独的协议JSONEncodable和JSONDecodable 。 JSONEncodable允许您的结构和类生成与NSJSONSerialization一起使用的NSDictionary或[String: Any
【文件预览】:
JSONCodable-master
----.travis.yml(667B)
----Supporting Files()
--------JSONCodable.h(515B)
--------Info.plist(830B)
----JSONCodableTests()
--------Messages.swift(1KB)
--------ArrayTests.swift(2KB)
--------Fruit.swift(722B)
--------MirrorTests.swift(2KB)
--------EncodeNestingTests.swift(875B)
--------ClassInheritanceTests.swift(675B)
--------EnumTests.swift(1KB)
--------TransformerTests.swift(3KB)
--------Food.swift(923B)
--------HelperTests.swift(2KB)
--------User.swift(1KB)
--------NestItem.swift(654B)
--------Company.swift(555B)
--------RegularTests.swift(5KB)
--------ImageAsset.swift(799B)
--------Info.plist(733B)
--------PropertyItem.swift(1KB)
--------ClassInheritance.swift(1KB)
--------PropertyCompany.swift(544B)
--------UtilityTests.swift(885B)
----LICENSE(1KB)
----JSONCodable.playground()
--------Contents.swift(3KB)
--------contents.xcplayground(189B)
----JSONCodable.podspec(542B)
----.gitignore(635B)
----logo.png(42KB)
----logo.sketch(32KB)
----JSONCodable.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(30KB)
--------xcshareddata()
----README.md(8KB)
----JSONCodable()
--------JSONHelpers.swift(2KB)
--------JSONEncodable+Mirror.swift(661B)
--------JSONEncodable.swift(11KB)
--------JSONCodable.swift(587B)
--------JSONDecodable.swift(14KB)
--------JSONTransformer.swift(1KB)
--------JSONString.swift(3KB)
----JSONCodable.xcworkspace()
--------contents.xcworkspacedata(232B)

网友评论