title: Prevent ServiceStack from serializing an ENUM
body: <p>This is my response at the moment... (from my RESTful API)</p>
  
  <pre><code>[
    {
      "batchID": 1,
      "status": "IN_PROGRESS"
    }
  ]
  </code></pre>
  
  <p>but what I really want is... </p>
  
  <pre><code>[
    {
      "batchID": 1,
      "status": 10   -- which means "In_progress" in my ENUM
    }
  ]
  </code></pre>
  
  <p>here is my c# DTO...</p>
  
  <pre><code>public class ReplyItem
  {
      public int BatchID { get; set; }            
      public BatchStatusCodes Status { get; set; }
  }
  </code></pre>
  
  <p>so in the JSON my <code>BatchStatusCode</code> is being serialized into a string, but I'd like it as an integer ,as the ENUM has each value set specifically (goes up in 5's)</p>
  
  <p><strong>One Solution</strong> : I know I can just change <code>BatchStatusCodes</code> to an <code>int</code>, and whenever I use it I could cast the ENUM to an integer, but including the ENUM in the reply makes it slightly more self describing.</p>
  
  <p>I was hoping maybe I could use an Attribute or some such fancy trick, or maybe set a service wide variable to not treat enums as they currently are?</p>