Object Wrapper
示例
要运行示例项目,首先克隆仓库,然后从 Example 目录运行 pod install
。
let dictWrapper: Wrap = [1, 2.0, "3.0", ["All", ["the": ["way"]], true]]
print(dictWrapper[3][1]["the"].first ?? "")
let string = """
[1, 2.0, "3.0", ["All", {"the": ["way"]}, true]]
"""
guard let jsonWrapper = Wrap(usingJSON: string) else {
return true
}
print(jsonWrapper[3][1]["the"].first ?? "")
要求
安装
ObjectWrapper 通过 CocoaPods 提供。安装它,只需将以下行添加到您的 Podfile 即可
pod 'ObjectWrapper'
作者:
alikiran, [email protected]
许可协议
ObjectWrapper按照MIT协议提供。更多信息请参阅LICENSE文件。