Browse Source

Update README

JSON does not have option since https://github.com/Alamofire/Alamofire/commit/9f7c36531d6a23ab8b5bb3f456fb7a7c79370d65
Manuel Darveau 11 years ago
parent
commit
7f7c2e6c73
1 changed files with 2 additions and 2 deletions
  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)
          }