CBLArray
@protocol CBLArray <NSObject, CBLArrayFragment, NSFastEnumeration>CBLArray protocol defines a set of methods for reading array data.
- 
                  
                  Gets a number of the items in the array. DeclarationObjective-C @property (readonly, atomic) NSUInteger count;Swift var count: UInt { get }
- 
                  
                  Undocumented DeclarationObjective-C - (nullable id) valueAtIndex: (NSUInteger)index;Swift func value(at index: UInt) -> Any?
- 
                  
                  Gets value at the given index as a string. Returns nil if the value doesn’t exist, or its value is not a string. DeclarationObjective-C - (nullable NSString *)stringAtIndex:(NSUInteger)index;Swift func string(at index: UInt) -> String?ParametersindexThe index. Return ValueThe NSString object or nil. 
- 
                  
                  Gets value at the given index as a number. Returns nil if the value doesn’t exist, or its value is not a number. DeclarationObjective-C - (nullable NSNumber *)numberAtIndex:(NSUInteger)index;Swift func number(at index: UInt) -> NSNumber?ParametersindexThe index. Return ValueThe NSNumber object or nil. 
- 
                  
                  Gets value at the given index as an integer value. Floating point values will be rounded. The value trueis returned as 1,falseas 0. Returns 0 if the value doesn’t exist or does not have a numeric value.DeclarationObjective-C - (NSInteger)integerAtIndex:(NSUInteger)index;Swift func integer(at index: UInt) -> IntParametersindexThe index. Return ValueThe integer value. 
- 
                  
                  Gets value at the given index as a long long value. Floating point values will be rounded. The value trueis returned as 1,falseas 0. Returns 0 if the value doesn’t exist or does not have a numeric value.DeclarationObjective-C - (long long)longLongAtIndex:(NSUInteger)index;Swift func longLong(at index: UInt) -> Int64ParametersindexThe index. Return ValueThe long long value. 
- 
                  
                  Gets value at the given index as a float value. Integers will be converted to float. The value trueis returned as 1.0,falseas 0.0. Returns 0.0 if the value doesn’t exist or does not have a numeric value.DeclarationObjective-C - (float)floatAtIndex:(NSUInteger)index;Swift func float(at index: UInt) -> FloatParametersindexThe index. Return ValueThe float value. 
- 
                  
                  Gets value at the given index as a double value. Integers will be converted to double. The value trueis returned as 1.0,falseas 0.0. Returns 0.0 if the property doesn’t exist or does not have a numeric value.DeclarationObjective-C - (double)doubleAtIndex:(NSUInteger)index;Swift func double(at index: UInt) -> DoubleParametersindexThe index. Return ValueThe double value. 
- 
                  
                  Gets value at the given index as a boolean. Returns YES if the value exists, and is either trueor a nonzero number.DeclarationObjective-C - (BOOL)booleanAtIndex:(NSUInteger)index;Swift func boolean(at index: UInt) -> BoolParametersindexThe index. Return ValueThe boolean value. 
- 
                  
                  Gets value at the given index as an NSDate. JSON does not directly support dates, so the actual property value must be a string, which is then parsed according to the ISO-8601 date format (the default used in JSON.) Returns nil if the value doesn’t exist, is not a string, or is not parseable as a date. NOTE: This is not a generic date parser! It only recognizes the ISO-8601 format, with or without milliseconds. DeclarationObjective-C - (nullable NSDate *)dateAtIndex:(NSUInteger)index;Swift func date(at index: UInt) -> Date?ParametersindexThe index. Return ValueThe NSDate object or nil. 
- 
                  
                  Get value at the given index as a CBLBlob. Returns nil if the value doesn’t exist, or its value is not a CBLBlob. DeclarationObjective-C - (nullable CBLBlob *)blobAtIndex:(NSUInteger)index;Swift func blob(at index: UInt) -> CBLBlob?ParametersindexThe index. Return ValueThe CBLBlob object or nil. 
- 
                  
                  Gets value as a CBLArray, which is a mapping object of an array value. Returns nil if the value doesn’t exists, or its value is not an array. DeclarationObjective-C - (nullable CBLArray *)arrayAtIndex:(NSUInteger)index;Swift func atIndex(_ index: UInt) -> CBLArray?ParametersindexThe index. Return ValueThe CBLArray object or nil. 
- 
                  
                  Get value at the given index as a CBLDictionary, which is a mapping object of a dictionary value. Returns nil if the value doesn’t exists, or its value is not a dictionary. DeclarationObjective-C - (nullable CBLDictionary *)dictionaryAtIndex:(NSUInteger)index;Swift func dictionary(at index: UInt) -> CBLDictionary?ParametersindexThe index. Return ValueThe CBLDictionary object or nil. 
- 
                  
                  Gets content of the current object as an NSArray. The value types of the values contained in the returned NSArray object are CBLBlob, NSArray, NSDictionary, NSNumber, NSNull, and NSString. DeclarationObjective-C - (nonnull NSArray *)toArray;Swift func toArray() -> [Any]Return ValueThe NSArray object representing the content of the current object. 
 CBLArray Protocol Reference
        CBLArray Protocol Reference