code: func (pc *PeerCertificate) MarshalJSON() ([]byte, error) {
  	b := pem.EncodeToMemory(&pem.Block{Type: "CERTIFICATE", Bytes: pc.Raw})
  	return json.Marshal(b)
  }
docs: // MarshalJSON returns the JSON encoded pem bytes of a PeerCertificate.