Esempio n. 1
0
 public String toJSON() {
   TMemoryBuffer trans = new TMemoryBuffer(1024);
   TJSONProtocol protocol = new TJSONProtocol(trans);
   try {
     _analyzerDefinition.write(protocol);
   } catch (TException e) {
     throw new RuntimeException(e);
   }
   trans.close();
   byte[] array = trans.getArray();
   return new String(array, 0, trans.length());
 }