code: public static String toJSON(TBase thriftObject) {
  		try {
  			return simpleJSONserializer.toString(thriftObject);
  		} catch(TException e) {
  			return e.getMessage();
  		}
  	}
docs: Serializes a Thrift object with the protocol {@link TSimpleJSONProtocol}.
  This format cannot be deserialized. Useful for logging, etc.
  
  Exceptions are ignored and returns an String with the exception error
  message.