title: convert C# Enum to Json array to bind knockout options
body: <p>How to convert Asp.NET Enum to Json array, so it can be used for knockout options binding?</p>
  
  <p>Options I see: is to create some custom enum extender (create method ConvertToJson that converts enum to Json) and write</p>
  
  <pre><code>&lt;script&gt;
      var myTypeEnum = @ConvertToJson(typeof(ClientTypeEnum)) ; 
  &lt;/script&gt;
  </code></pre>
  
  <p>and then I can use</p>
  
  <pre><code> &lt;select data-bind="options: myTypeEnum, ....&gt;&lt;/select&gt;
  </code></pre>
  
  <p>But I believe there are better options, so I do need to write <code>ConverToJson</code> method by myself?</p>