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.
2 parents d25ca35 + 0619a1a commit 1cf873dCopy full SHA for 1cf873d
JSONCodable/JSONDecodable.swift
@@ -65,7 +65,7 @@ public extension Array where Element: JSONDecodable {
65
init(JSONArray: [AnyObject]) throws {
66
self.init(try JSONArray.flatMap {
67
guard let json = $0 as? [String : AnyObject] else {
68
- throw JSONDecodableError.DictionaryTypeExpectedError(key: "[inarray]", elementType: $0.dynamicType)
+ throw JSONDecodableError.DictionaryTypeExpectedError(key: "n/a", elementType: $0.dynamicType)
69
}
70
return try Element(object: json)
71
})
@@ -277,4 +277,4 @@ public class JSONDecoder {
277
278
return result
279
280
-}
+}
0 commit comments