title: How can I serialize a c# integer as a JSON string without changing the c# data type?
body: <p>I have the following customer class in c#:</p>
  <pre><code>class Customer 
  {
    public int CustomerID;
    public string Name;
  }
  </code></pre>
  <p>I am trying to convert the class object to Json string using Newtonsoft.Json:</p>
  <pre><code>Customer c = new Customer();
  c.CustomerID = 1;
  c.Name = &quot;Test&quot;;
  string jsonString = JsonConvert.SerializeObject(obj);
  </code></pre>
  <p>It generates:</p>
  <pre><code>{&quot;CustomerID&quot;: 1, &quot;Name&quot;: &quot;Test&quot;}
  </code></pre>
  <p>Is it possible to wrap Customer ID to double quotes (without changing CustomerID data type from int to string)?</p>
  <pre><code>{&quot;CustomerID&quot;: &quot;1&quot;, &quot;Name&quot;: &quot;Test&quot;}
  </code></pre>