output = new PrintStream(new BufferedOutputStream(stream), false, "UTF-8");
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e); // UTF-8 should always be supported
}
ser.toJson(obj, type, _properties, output);
output.flush();
Log.info("toJson - end "
+ (obj != null ? obj.getClass().getName() : "null"));
}