title: Send json via POST with Alamofire
body: <p>I have a problem with Alamofire, i need to send a POST request with a json formatted in this way</p>
  
  <pre><code>{
  "date":"2016/05/09"
  }
  </code></pre>
  
  <p>this is my code for the request</p>
  
  <pre><code>static func getCalendar(date: NSDate, completion: (liveBeanList: Array&lt;LiveBean&gt;) -&gt; Void){
  
      let dateFormatter: NSDateFormatter = NSDateFormatter()
      dateFormatter.dateFormat = "yyyy/MM/dd"
      let dateString = dateFormatter.stringFromDate(date)
  
  
      let jsonObject: [String: AnyObject]  = ["date": dateString]
  
  
      Alamofire.request(.POST, "http://127.0.0.1:8080/playground-server/rest/match/calendar", parameters: jsonObject, encoding: .JSON).responseJSON { response in
  
          if let JSON = response.result.value {
              print("JSON: \(JSON)")
  
              let jsonResponse = JSON as! NSDictionary
              let response = jsonResponse.objectForKey("response") as! NSDictionary;
  
              let match_data = response["match_data"] as? [[String: AnyObject]]
  
              //let liveBean = LiveBean(fromJson: match_data![0] as NSDictionary);
  
              var liveBeanList: Array&lt;LiveBean&gt; = [];
  
              for match in match_data! {
                  let liveBean = LiveBean(fromJson: match as NSDictionary);
                  liveBeanList.append(liveBean)
              }
  
              completion(liveBeanList: liveBeanList)
  
          }
      }
  }
  </code></pre>
  
  <p>but on the server arrive this string</p>
  
  <pre><code>data=2016%2F05%2F09
  </code></pre>
  
  <p>so it launch an exception because the string is not a json, how can i send a correct json?</p>