CBLMutableDocument
@interface CBLMutableDocument : CBLDocument <CBLMutableDictionary>The mutable version of the CBLDocument.
- 
                  
                  Creates a new CBLMutableDocument object with a new random UUID. The created document will be saved into a database when you call the CBLDatabase’s -save: method with the document object given. DeclarationObjective-C + (nonnull instancetype)document;
- 
                  
                  Creates a new CBLMutableDocument object with the given ID. If a nil ID value is given, the document will be created with a new random UUID. The created document will be saved into a database when you call the CBLDatabase’s -save: method with the document object given. DeclarationObjective-C + (nonnull instancetype)documentWithID:(nullable NSString *)documentID;ParametersdocumentIDThe document ID. 
- 
                  
                  Initializes a new CBLMutableDocument object with a new random UUID. The created document will be saved into a database when you call the CBLDatabase’s -save: method with the document object given. DeclarationObjective-C - (nonnull instancetype)init;
- 
                  
                  Initializes a new CBLMutableDocument object with the given ID. If a nil ID value is given, the document will be created with a new random UUID. The created document will be saved into a database when you call the CBLDatabase’s -save: method with the document object given. DeclarationObjective-C - (nonnull instancetype)initWithID:(nullable NSString *)documentID;ParametersdocumentIDThe document ID. 
- 
                  
                  Initializes a new CBLMutableDocument object with a new random UUID and the data. Allowed data value types are CBLArray, CBLBlob, CBLDictionary, NSArray, NSDate, NSDictionary, NSNumber, NSNull, NSString. The NSArrays and NSDictionaries must contain only the above types. The created document will be saved into a database when you call the CBLDatabase’s -save: method with the document object given. DeclarationObjective-C - (nonnull instancetype)initWithData: (nonnull NSDictionary<NSString *, id> *)data;ParametersdataThe data. 
- 
                  
                  Initializes a new CBLMutableDocument object with the JSON data. DeclarationObjective-C - (nullable instancetype)initWithJSON:(nonnull NSString *)json error:(NSError *_Nullable *_Nullable)error;ParametersjsonThe JSON string with data. errorOn return, the error if any. Return ValueThe CBLMutableDocument object, nil in case of JSON Error . 
- 
                  
                  Initializes a new CBLMutableDocument object with the given ID and the data. If a nil ID value is given, the document will be created with a new random UUID. Allowed data value types are CBLMutableArray, CBLBlob, CBLMutableDictionary, NSArray, NSDate, NSDictionary, NSNumber, NSNull, NSString. The NSArrays and NSDictionaries must contain only the above types. The created document will be saved into a database when you call the CBLDatabase’s -save: method with the document object given. DeclarationObjective-C - (nonnull instancetype)initWithID:(nullable NSString *)documentID data:(nonnull NSDictionary<NSString *, id> *)data;ParametersdocumentIDThe document ID. dataThe data. 
- 
                  
                  Initializes a new CBLMutableDocument object with the given ID and the JSON data. If a nil ID value is given, the document will be created with a new random UUID. DeclarationObjective-C - (nullable instancetype)initWithID:(nullable NSString *)documentID json:(nonnull NSString *)json error:(NSError *_Nullable *_Nullable)error;ParametersdocumentIDThe document ID. jsonThe JSON string with data. errorOn return, the error if any. Return ValueThe CBLMutableDocument object, nil in case of JSON Error . 
 CBLMutableDocument Class Reference
        CBLMutableDocument Class Reference