Skip to content

Commit 5a2e0f0

Browse files
authored
Merge pull request #184 from tumblr/taichi/json_array_can_be_list_of_strings
The root level object can be a list of strings
2 parents 31ea1a1 + c0bb1a3 commit 5a2e0f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/include/TMParsedHTTPResponse.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ __attribute__((objc_subclassing_restricted))
3535
APIErrors:(nonnull NSArray <id <TMAPIError>> *)APIErrors
3636
statusCode:(NSInteger)statusCode;
3737

38-
- (nonnull instancetype)initWithJSONArray:(nullable NSArray<NSDictionary<NSString *, id> *> *)JSONArray
38+
- (nonnull instancetype)initWithJSONArray:(nullable NSArray<id> *)JSONArray
3939
successful:(BOOL)successful
4040
responseDescription:(nullable NSString *)responseDescription
4141
error:(nullable NSError *)error
@@ -47,7 +47,7 @@ __attribute__((objc_subclassing_restricted))
4747
*/
4848
@property (nonatomic, nullable, copy, readonly) NSDictionary<NSString *, id> *JSONDictionary;
4949

50-
@property (nonatomic, nullable, copy, readonly) NSArray<NSDictionary<NSString *, id> *> *JSONArray;
50+
@property (nonatomic, nullable, copy, readonly) NSArray<id> *JSONArray;
5151

5252
/**
5353
* Whether or not the HTTP requst was successful or not.

0 commit comments

Comments
 (0)