JSONDictionary

public class JSONDictionary<T: JSONDeserializer>: JSONDeserializer

Deserializer type for Dictionary.

Note

The Dictionary‘s Key type is String all that’s all JSON allows.
  • Outputs a dictionary mapping Strings to T‘s output type.

    Declaration

    Swift

    public typealias Deserialized = [String: T.Deserialized]
  • Deserializes dictionary and its contents.

    Throws

    Lets T.deserialize‘s errors go through.

    Declaration

    Swift

    public static func deserialize(dictionary: NSDictionary) throws -> Deserialized