code: void writeObjectEnd() throws IOException {
          currentIndent = currentIndent.substring(0, currentIndent.length() - indent.length());
          if (commaState.get(commaDepth)) {
              output.append(newLine);
              output.append(currentIndent);
          }
          output.append('}');
          commaDepth--;
      }
docs: Writes a JSON object end.
  
  @throws IOException if an error occurs