code: private void writeObject(ObjectOutputStream stream) throws IOException {
          Utils.mapper().writeValue((DataOutput) stream, jsonObject);
      }
docs: For serialization.
  
  @param stream - The output stream to write the object to.