title: java.io.NotSerializableException: org.json.JSONObject
body: <p>JDBCTemplate and MYSQL JSON</p>
  
  <p>I am writing a rest service where i need to add few details at mysql table.</p>
  
  <p>My mysql table as a column <code>area_json</code> as type json.</p>
  
  <p>I got a pojo object from post call in rest service and i tried to insert it using jdbctemplate like</p>
  
  <pre><code>jdbcTemplate.update("insert into site(area_id,area_json) values(?,?)", area.getareaID(), area.getareaJson());
  </code></pre>
  
  <p>Once I do a post call using post man i get the below error</p>
  
  <pre><code>Invalid argument value: java.io.NotSerializableException;
  nested exception is java.sql.SQLException: Invalid argument value: java.io.NotSerializableException"
  </code></pre>
  
  <p>Please help </p>