/** * Supports appending array elements and object properties by adding a comma to the buffer unless the last char is equal to [ or { (i.e., the beginning of an array or object). */privatevoid fixComma() {
if(this.b.length()>0 && this.getLast()!='[' && this.getLast()!='{') b.append(",");
}