code: func (p *Path) UnmarshalJSON(data []byte) error {
  	var pointSet PointSet
  
  	err := json.Unmarshal(data, &pointSet)
  	if err != nil {
  		return err
  	}
  	p.PointSet = pointSet
  	return nil
  }
docs: // UnmarshalJSON enables paths to be decoded as JSON using the encoding/json package.