I am trying to create then append a dictionary but I am getting the following error I can't solve: Cannot subscript a value of type '[String: AnyObject]?' with an index of type 'String'
Anyone has an idea? Thanks in advance!
var parameters: [String:[String:AnyObject]] = [
"user": [
"email": email,
"password": passwordTextField.text,
"first_name": firstName,
"last_name": lastName
]
]
parameters["user"]["status"] = "Connected"