code: func (p Browser) MarshalJSON() ([]byte, error) {
  	aps := map[string]interface{}{"alert": p.Alert, "url-args": p.URLArgs}
  	return json.Marshal(map[string]interface{}{"aps": aps})
  }
docs: // MarshalJSON allows you to json.Marshal(browser) directly.