private void writeObject(ObjectOutputStream out) throws IOException {
  out.writeUTF(JsonUtil.toJson(data));
  out.defaultWriteObject();
}

private void writeObject ( ObjectOutputStream out ) throws IOException { out . writeUTF ( JsonUtil . toJson ( data ) ) ; out . defaultWriteObject ( ) ; }
serialize the data map in json .
