We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df58c58 commit 0619a1aCopy full SHA for 0619a1a
JSONCodable/JSONDecodable.swift
@@ -55,7 +55,7 @@ public extension Array where Element: JSONDecodable {
55
init(JSONArray: [AnyObject]) throws {
56
self.init(try JSONArray.flatMap {
57
guard let json = $0 as? [String : AnyObject] else {
58
- throw JSONDecodableError.DictionaryTypeExpectedError(key: "[inarray]", elementType: $0.dynamicType)
+ throw JSONDecodableError.DictionaryTypeExpectedError(key: "n/a", elementType: $0.dynamicType)
59
}
60
return try Element(JSONDictionary: json)
61
})
@@ -267,4 +267,4 @@ public class JSONDecoder {
267
268
return result
269
270
-}
+}
0 commit comments