code: private boolean isEmptyObject()
      {
          boolean retVal = false;
  
          /**
           * Check for no attributes
           */
          if (this.attrs == null || (this.attrs != null && this.attrs.isEmpty()))
          {
              /**
               * Check for no sub-children
               */
              if (this.jsonObjects.isEmpty())
              {
                  /**
                   * Check for no tag text.
                   */
                  if (this.tagText == null || (this.tagText != null && this.tagText.trim().equals("")))
                  {
                      retVal = true;
                  }
              }
          }
  
          return retVal;
      }
docs: Internal Helper method for determining if this is an empty tag inan XML document, such as <F/>
  @return boolean denoting whether or not the object being written contains any attributes, tags, or text.