code: func (p *StreamPath) UnmarshalJSON(data []byte) error {
  	v := ""
  	if err := json.Unmarshal(data, &v); err != nil {
  		return err
  	}
  	if err := StreamPath(v).Validate(); err != nil {
  		return err
  	}
  	*p = StreamPath(v)
  	return nil
  }
docs: // UnmarshalJSON implements json.Unmarshaler.