title: Grails Enumeration to JSON
body: <p>I would like to change the way enums are marshalled to JSON. I am currently using default grails.converters.JSON ( as JSON) and for example in controller I use:</p>
  
  <blockquote>
    <p>FilmKind.values() as JSON</p>
  </blockquote>
  
  <p>The output of this is:</p>
  
  <pre><code>"kind":[{"enumType":"FilmKind","name":"DRAMA"},{"enumType":"FilmKind","name":"ACTION"}]
  </code></pre>
  
  <p>I would like to remove "enumType" and just return:</p>
  
  <pre><code>"kind":["DRAMA","ACTION"]
  </code></pre>
  
  <p>I am looking for a solution which would still allow me to use </p>
  
  <blockquote>
    <p>as JSON</p>
  </blockquote>
  
  <p>because I don't want to marshall each enumeration individually.</p>