JSONCodable
JSONCodable copied to clipboard
Hassle-free JSON encoding and decoding in Swift
Hi @matthewcheok, @Nadohs. I really love this framework. I have used it on several projects. I have a small issue where when building the project with Carthage `xcodebuild` will throw...
Minor fix in doc
This trys to reduce the duplication of JSONCodable. It is still work in progress. But I would love to hear a few opinions * Adds more small tests. When one...
I have a structure called `OTKSession` that conforms to `JSONDecodable`, however using in it context of `Array` within generics does not work and I get the following error: ``` Client.swift:128:19:...
Hi, It's probably easiest for me to explain my use case: The application that I work on uses an API which sends down information that looks vaguely like this: ```...
It seems that after pull request https://github.com/matthewcheok/JSONCodable/pull/53 JSONCodable got functionality for encoding/decoding nested types (https://github.com/matthewcheok/JSONCodable/pull/53/commits/9782c0fc77679c92fcd5d9a8a082305db121e2d1). However the problem we are having is that our API JSON responses have some keys...
This fails to compile: ``` let val: JSONEncodable = SomeTypeThatImplementsJSONEncodable() public func toJSON() throws -> AnyObject { return try JSONEncoder.create { encoder in try encoder.encode(val, key: "SomeKey") } } ```...
There are some situations where not encoding a property, or encoding it with a null value will result in different behaviours. So I've added the ability to do this while...
The Objective-C libraries I have used for JSON, such as [JSONModel](https://github.com/icanzilb/JSONModel), support reflection when decoding. This is good because JSON requests are often simple, while the responses are complex. For...