code: func (n NodeMode) MarshalJSON() ([]byte, error) {
  	buffer := bytes.NewBufferString(`"`)
  	buffer.WriteString(n.String())
  	buffer.WriteString(`"`)
  	return buffer.Bytes(), nil
  }
docs: // MarshalJSON marshals a NodeMode