public static String objectString(Object obj) {
    StringBuilder sb = new StringBuilder();
    objectString(obj, sb);
    return sb.toString();
  }
Get proper string for an object including arrays.
geode-core/src/main/java/org/apache/geode/internal/util/ArrayUtils.java