title: Make JSONObject Serializable
body: <p><code>JSONObject</code> class of package <code>org.codehaus.groovy.grails.web.json</code> does not implement <code>Serializable</code>.</p>
  
  <p>I want to make this object serializable as I am using session replication among application servers and <code>JSONObject</code> gets saved in session.</p>
  
  <p>I have two options to achieve this:</p>
  
  <ol>
  <li>Subclass <code>JSONObject</code>s that implements <code>Serializable</code>. </li>
  <li>use <code>toString()</code> method on <code>JSONObject</code> object while saving this object in session.</li>
  </ol>
  
  <p>Can anyone please suggest which one of two options should I use and what is the reason?</p>