src/lib/XmlNode.js
/**
  Returns a JSON-serializable object representing this node, minus properties
  that could result in circular references.

  @returns {{[key: string]: any}}
  @public
  */
Returns a JSON-serializable object representing this node, minus properties
that could result in circular references.
Returns a JSON - serializable object representing this node minus properties that could result in circular references .
toJSON() {
    let json = {
      type: this.type,
    };
    if (this.isRootNode) {
      json.isRootNode = true;
    }
    if (this.preserveWhitespace) {
      json.preserveWhitespace = true;
    }
    return json;
  }
toJSON ( ) { let json = { type : this . type , } ; if ( this . isRootNode ) { json . isRootNode = true ; } if ( this . preserveWhitespace ) { json . preserveWhitespace = true ; } return json ; }
Returns a JSON-serializable object representing this node, minus properties
that could result in circular references.
Returns a JSON - serializable object representing this node minus properties that could result in circular references .
/** @type {{[key: string]: any}} */