code: func (gat GetAllTarget) MarshalJSON() ([]byte, error) {
  	switch gat {
  	case GetAllProject:
  		return projectJSON, nil
  	case GetAllRef:
  		return refJSON, nil
  	default:
  		return nil, errors.Reason("unknown GetAllTarget: %v", gat).Err()
  	}
  }
docs: // MarshalJSON implements json.Marshaler.