@Override
    public void close() throws IOException {
      try {
        myWriter.endArray();
        myWriter.endObject();
      }
      finally {
        myWriter.close();
      }
    }
@Override
    public void close()