[Solved] how to create json string in swift and send it to server


let parameters: [String: AnyObject] = [
   "Notification": [

    "id": "15",
  ..........
  ......


] 
    ]

Alamofire.request(.POST, "http://server.com", parameters: parameters, encoding: .JSON)
    .responseJSON { request, response, JSON, error in
        print(response)
        print(JSON)
        print(error)
    }

solved how to create json string in swift and send it to server