title: JSON data in http body contains special characters in my simple case
body: <p>I have a very simple model <code>struct</code> <code>Student</code> which only has two properties <code>firstName</code> and <code>lastName</code>:</p>
  
  <pre><code>struct Student {
      let firstName: String
      let lastName: String
  
      init(_ firstName: String, _ lastName: String) {
          self.firstName = firstName
          self.lastName = lastName
      }
  
      // Convert to json data
      func toData() -&gt; Data? {
          var json = [String: Any]()
          let mirror = Mirror(reflecting: self)
          for child in mirror.children {
              if let key = child.label?.trimmingCharacters(in: .whitespacesAndNewlines) {
                  json[key] = child.value
              }
          }
          do {
              return try JSONSerialization.data(withJSONObject: json, options: [])
          } catch {
              print("\(error.localizedDescription)")
          }
  
          return nil
      }
  }
  </code></pre>
  
  <p>As you see above, I created an <code>toData()</code> function which I use to convert model object to JSON data for my HTTP request body.</p>
  
  <p>I create <code>Student</code> instance by:</p>
  
  <pre><code>let student = Student("John", "Smith")
  </code></pre>
  
  <p>I got Json Data by:</p>
  
  <pre><code>let jsonData = student.toData()
  </code></pre>
  
  <p>later I set to my <code>URLRequest</code> body by:</p>
  
  <pre><code>request.httpBody = jsonData!
  </code></pre>
  
  <p>However, backend team always see :</p>
  
  <pre><code>{\"firstName\":\"John\", \"lastName\":\"Smith\"}
  </code></pre>
  
  <p>But backend expect:</p>
  
  <pre><code>{"firstName":"John", "lastName":"Smith"}
  </code></pre>
  
  <p>I am sure it is not backend problem. Looks like something needs to improve in my <code>toData()</code> function. But I don't know what to do. Could someone help me?</p>