title: POST method for zoho books using Json for Swift 3
body: <p>I'm trying to include Zoho Books API within my swift app. 
  I would like to create an item using the POST method, but I keep having an error message saying my JSONString is wrong.</p>
  
  <p>Here is what zoho documentation request to send, using POST method, in order to create and item :</p>
  
  <pre><code> https://books.zoho.com/api/v3/items
    ?authtoken=e07119171812c29b3a0dacdb79a57e3f
    &amp;organization_id=10234695
    &amp;JSONString={
        "name": "Hard Drive",
        "description": "500GB, USB 2.0 interface 1400 rpm, protective hard case.",
        "rate": 120.00,
        "account_id": "460000000000388",
        "tax_id": "460000000027005"
  }
  </code></pre>
  
  <p>Here is what I make. I sense somehow my JSONString doesnt meet the expected format...</p>
  
  <pre><code>let postData = [ 
              "authtoken" : "ZZZZZZZZZZZZZZZZZZZZZZ",
              "organization_id" : "XXXXXXXXXXX",
              "JSONString" :
                  [
                  "name": "Hard Drive",
                  "description": "500GB, USB 2.0 interface 1400 rpm, protective hard case.",
                  "rate": 120.00,
                  "account_id": "460000000000388",
                  "tax_id": "460000000027005"
                  ]
              ] as [String : Any]
  
          var request = URLRequest(url: NSURL(string:"https://books.zoho.eu/api/v3/items")! as URL)
          request.httpMethod = "POST"
          request.httpBody = try! JSONSerialization.data(withJSONObject: postData, options: [])
          request.addValue("application/json", forHTTPHeaderField: "Content-Type")
  
          Alamofire.request(request).responseJSON
              { response in
                  if let JSON = response.result.value {
                      let zohoResponse: [String: AnyObject] = JSON as! [String : AnyObject]
                      print(zohoResponse)
                  }
          }
  </code></pre>
  
  <p>And the answer : </p>
  
  <pre><code>["code": 4, "message": Invalid value passed for JSONString]
  </code></pre>
  
  <p>I manage well to make GET request so I believe it should be manageable to use POST method within my swift app as well.</p>
  
  <p>Many thanks for your help</p>
  
  <p>Regards</p>