I would like to pass a nil value i.e., optional to one of the parameter value. And it must proceed with the nil value in the Alamofire Post request .It woul
By passing nil or uninitialized optional parameter Server will get Optional
You can pass NSNull() to dictionary
try this, like
var params = ["paramA","valueA"] if imageBase64 == nil { parms["image"] = NSNull()} else { params["image"] = imageBase64 }
swiftyjson also handle null as NSNull
also there is good reference here null / nil in swift language