docs: public static String prettyPrint(String jsonPayload) {
          int indentSize = 0;
          // Just a guess that the pretty view will take 20 percent more than original.
          final CharBuf output = CharBuf.create((int) (jsonPayload.length() * 1.2));
  
          JsonLexer lexer = new JsonLexer(new StringReader(jsonPayload));
          // Will store already created indents.
          Map<Integer, char[]> indentCache = new HashMap<Integer, char[]>();
          while (lexer.hasNext()) {
              JsonToken token = lexer.next();
              switch (token.getType()) {
                  case OPEN_CURLY:
                      indentSize += 4;
                      output.addChars(Chr.array(OPEN_BRACE, NEW_LINE)).addChars(getIndent(indentSize, indentCache));
  
                      break;
                  case CLOSE_CURLY:
                      indentSize -= 4;
                      output.addChar(NEW_LINE);
                      if (indentSize > 0) {
                          output.addChars(getIndent(indentSize, indentCache));
                      }
                      output.addChar(CLOSE_BRACE);
  
                      break;
                  case OPEN_BRACKET:
                      indentSize += 4;
                      output.addChars(Chr.array(OPEN_BRACKET, NEW_LINE)).addChars(getIndent(indentSize, indentCache));
  
                      break;
                  case CLOSE_BRACKET:
                      indentSize -= 4;
                      output.addChar(NEW_LINE);
                      if (indentSize > 0) {
                          output.addChars(getIndent(indentSize, indentCache));
                      }
                      output.addChar(CLOSE_BRACKET);
  
                      break;
                  case COMMA:
                      output.addChars(Chr.array(COMMA, NEW_LINE)).addChars(getIndent(indentSize, indentCache));
  
                      break;
                  case COLON:
                      output.addChars(Chr.array(COLON, SPACE));
  
                      break;
                  case STRING:
                      String textStr = token.getText();
                      String textWithoutQuotes = textStr.substring(1, textStr.length() - 1);
                      if (textWithoutQuotes.length() > 0) {
                          output.addJsonEscapedString(textWithoutQuotes);
                      } else {
                          output.addQuoted(Chr.array());
                      }
  
                      break;
                  default:
                      output.addString(token.getText());
              }
          }
  
          return output.toString();
      }