docs: public void emitEnd() {
          Level lvl = currentLevel();
          Level parent = parentLevel();
          switch(lvl.status) {
          case seq:
              if(lvl.ncount == 0) {
                  write(EMPTY_ARRAY, 3);
              } else if(parent.status == LevelStatus.mapx) {
                  write(NEWLINE, 1);
              }
              break;
          case iseq:
              write(SQUARE_CLOSE, 1);
              if(parent.status == LevelStatus.mapx) {
                  write(NEWLINE, 1);
              }
              break;
          case map:
              if(lvl.ncount == 0) {
                  write(EMPTY_HASH, 3);
              } else if(lvl.ncount % 2 == 1) {
                  write(COLON, 1);
              } else if(parent.status == LevelStatus.mapx) {
                  write(NEWLINE, 1);
              }
              break;
          case imap:
              write(CURLY_CLOSE, 1);
              if(parent.status == LevelStatus.mapx) {
                  write(NEWLINE, 1);
              }
              break;
          default: break;
          }
      }