title: How do we not stringify a json while encoding data using swift encodable?
body: <p>I have struct to make request models</p>
  
  <pre><code>struct SignUpRequestModel:Encodable {
  
      let firstName:String
      let lastName:String
      let email:String
      let password:String
      let nickName:String
      let platform = "ios"
      let fcmId:String
  
      //Optional params
      let referalCode:String
      let facebookId:String
      let googleId:String
      let fcmUserId:String
      let image:String
  
  }
  </code></pre>
  
  <p>This is the model initialised</p>
  
  <pre><code> let requestModel = SignUpRequestModel(firstName: "Sooraj", lastName: "Jeesson", email: "althafe@******.com", password: "123456", nickName: "Sooraj", fcmId: "**********", referalCode: "", facebookId: "", googleId: "", fcmUserId: "", image: "")
  </code></pre>
  
  <p>The output of the following will be stringified </p>
  
  <pre><code>let encoder = JSONEncoder()
  encoder.keyEncodingStrategy = .convertToSnakeCase
  let encodedData = try encoder.encode(requestModel)
  
  ex - "{\n  \"facebook_id\" : \"\",\n  \"nick_name\" : \"Sooraj\",\n  \"google_id\" : \"\",\n  \"password\" : \"123456\",\n  \"platform\" : \"ios\",\n  \"image\" : \"\",\n  \"first_name\" : \"Sooraj\",\n  \"fcm_id\" : \"**********\",\n \"last_name\" : \"Jeesson\",\n  \"email\" : \"althafe@*******.com\",\n  \"referal_code\" : \"\",\n  \"fcm_user_id\" : \"\"\n}"
  </code></pre>
  
  <p>How do we not stringify(The <code>"</code> beore and after <code>{</code> <code>}</code> of json object) a data while encoding using JSONEncoder. I wanted to pass this as a JSON only to my server. I tried some solutions but doesn't seem to work . My backend doesn't accept stringified json as the android version is already deployed and live.</p>
  
  <p>This is the output in server</p>
  
  <pre><code>[Object: null prototype] {
  '{"facebook_id":"","nick_name":"sooraj","google_id":"","password":"123456","platform":"ios","image":"","first_name":"sooraj","fcm_id":"bvcxfrty5634tgerbfcvndfgdfgbvbdgsvbgtujyiyui675634trfsdfdszgvcvx","last_name":"jeesson","email":"althafe@newagesmb.com","referal_code":"","fcm_user_id":""}': '' }
  </code></pre>
  
  <p>I am using alamofire to make request. The encoded data is passed like this</p>
  
  <pre><code> //MARK:Make the request body
          var request = URLRequest(url: url)
          request.httpMethod = method.rawValue
          request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
  
          if requestData != nil{
              request.httpBody = requestData!
          }
  </code></pre>
  
  <p>The alamofire encoding type is default.. i have not made any changes there</p>