core/src/main/java/org/apache/calcite/util/JsonBuilder.java
public void append(StringBuilder buf, int indent, @Nullable Object o) {
    if (o == null) {
      buf.append("null");
    } else if (o instanceof Map) {
      //noinspection unchecked
      appendMap(buf, indent, (Map) o);
    } else if (o instanceof List) {
      appendList(buf, indent, (List<?>) o);
    } else if (o instanceof String) {
      appendString(buf, (String) o);
    } else {
      assert o instanceof Number || o instanceof Boolean;
      buf.append(o);
    }
  }
/**
   * Appends a JSON object to a string builder.
   */
Appends a JSON object to a string builder.
Appends a JSON object to a string builder .
public void append(StringBuilder buf, int indent, @Nullable Object o) {
    if (o == null) {
      buf.append("null");
    } else if (o instanceof Map) {
      appendMap(buf, indent, (Map) o);
    } else if (o instanceof List) {
      appendList(buf, indent, (List<?>) o);
    } else if (o instanceof String) {
      appendString(buf, (String) o);
    } else {
      assert o instanceof Number || o instanceof Boolean;
      buf.append(o);
    }
  }
public void append ( StringBuilder buf , int indent , @ Nullable Object o ) { if ( o == null ) { buf . append ( "null" ) ; } else if ( o instanceof Map ) { appendMap ( buf , indent , ( Map ) o ) ; } else if ( o instanceof List ) { appendList ( buf , indent , ( List < ? > ) o ) ; } else if ( o instanceof String ) { appendString ( buf , ( String ) o ) ; } else { assert o instanceof Number || o instanceof Boolean ; buf . append ( o ) ; } }
Appends a JSON object to a string builder.
Appends a JSON object to a string builder .
//noinspection unchecked