17 package org.apache.calcite.util;
19 import org.apache.calcite.util.JsonBuilder;
20 import org.apache.commons.text.StringEscapeUtils;
22 import java.util.List;
27 public void append(StringBuilder buf,
int indent, Object o) {
28 if (o instanceof String) {
29 buf.append(
'"').
append(StringEscapeUtils.escapeJson((String) o)).
append(
'"');
30 }
else if ((o == null) || (o instanceof Map) || (o instanceof List)
31 || (o instanceof Number) || (o instanceof Boolean)) {
32 super.append(buf, indent, o);
void append(StringBuilder buf, int indent, Object o)