title: Convert long number as string in the serialization
body: <p>I have a custom made class that use a long as ID. However, when I call my action using ajax, my ID is truncated and it loses the last 2 numbers because javascript loses precision when dealing with large numbers. My solution would be to give a string to my javascript, but the ID have to stay as a long on the server side.</p>
  
  <p>Is there a way to serialize the property as a string? I'm looking for some kind of attribute.</p>
  
  <p>Controller</p>
  
  <pre><code>public class CustomersController : ApiController
  {
     public IEnumerable&lt;CustomerEntity&gt; Get()
     {
        yield return new CustomerEntity() { ID = 1306270928525862486, Name = "Test" };
     }
  }
  </code></pre>
  
  <p>Model</p>
  
  <pre><code>public class CustomerEntity
  {
     public long ID { get; set; }
     public string Name { get; set; }
  }
  </code></pre>
  
  <p>JSON Result</p>
  
  <pre><code>[{"Name":"Test","ID":1306270928525862400}]
  </code></pre>