Skip to content

Commit 5f5d00d

Browse files
author
Ruoyu Fu
committed
We do return true if the JSON is neither an Array nor a Dictionary
1 parent 7ab4607 commit 5f5d00d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎Source/SwiftyJSON.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ extension JSON : Swift.CollectionType, Swift.SequenceType, Swift.Indexable {
224224
}
225225
}
226226

227-
/// If `type` is `.Array` or `.Dictionary`, return `array.empty` or `dictonary.empty` otherwise return `false`.
227+
/// If `type` is `.Array` or `.Dictionary`, return `array.empty` or `dictonary.empty` otherwise return `true`.
228228
public var isEmpty: Bool {
229229
get {
230230
switch self.type {

‎SwiftyJSON.xcodeproj/project.pbxproj‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@
770770
"$(inherited)",
771771
);
772772
INFOPLIST_FILE = "Tests/Info-iOS.plist";
773+
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
773774
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
774775
METAL_ENABLE_DEBUG_INFO = YES;
775776
PRODUCT_BUNDLE_IDENTIFIER = "com.swiftyjson.${PRODUCT_NAME:rfc1034identifier}";
@@ -781,6 +782,7 @@
781782
isa = XCBuildConfiguration;
782783
buildSettings = {
783784
INFOPLIST_FILE = "Tests/Info-iOS.plist";
785+
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
784786
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
785787
METAL_ENABLE_DEBUG_INFO = NO;
786788
PRODUCT_BUNDLE_IDENTIFIER = "com.swiftyjson.${PRODUCT_NAME:rfc1034identifier}";

0 commit comments

Comments
 (0)