Object Wrapper
Example
To run the example project, clone the repo, and run pod install from the Example directory first.
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 ?? "")Requirements
Installation
ObjectWrapper is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ObjectWrapper'Author
alikiran, [email protected]
License
ObjectWrapper is available under the MIT license. See the LICENSE file for more info.