func (c *Connection) MarshalJSON() ([]byte, error) {

    type connection Connection
    type connectionWrapper struct {
        *connection