ソースを参照

JSON parameter encoding no longer has options

For now, ParameterEncoding.JSON doesn't have options anymore... this
updates the documentation to reflect that.

Fixes #86
John Gibb 11 年 前
コミット
57ffd16fc1
1 ファイル変更2 行追加2 行削除
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -128,7 +128,7 @@ Alamofire has built-in support for encoding parameters as URL query / URI form e
 ```swift
 enum ParameterEncoding {
     case URL
-    case JSON(options: NSJSONWritingOptions)
+    case JSON
     case PropertyList(format: NSPropertyListFormat,
                       options: NSPropertyListWriteOptions)
 
@@ -153,7 +153,7 @@ let encoding = Alamofire.ParameterEncoding.URL
 ### POST Request with JSON Response
 
 ```swift
-Alamofire.request(.POST, "http://httpbin.org/post", parameters: parameters, encoding: .JSON(options: nil))
+Alamofire.request(.POST, "http://httpbin.org/post", parameters: parameters, encoding: .JSON)
          .responseJSON {(request, response, JSON, error) in
             println(JSON)
          }