title: Grails - grails.converters.JSON - removing the class name
body: <p>Is there a way to remove the class field in a JSON converter?</p>
  
  <p>Example:  </p>
  
  <pre><code>import testproject.*
  import grails.converters.*  
  emp = new Employee()  
  emp.lastName = "Bar"  
  emp as JSON  
  </code></pre>
  
  <p>as a string is    </p>
  
  <pre><code>{"class":"testproject.Employee","id":null,"lastName":"Bar"}
  </code></pre>
  
  <p>I'd prefer   </p>
  
  <pre><code>{"id":null,"lastName":"Bar"}
  </code></pre>
  
  <p>Is there a way to add one more line of code at the end to remove the class field?</p>