code: func (c *ChaincodeInput) UnmarshalJSON(b []byte) error {
  	sa := &strArgs{}
  	err := json.Unmarshal(b, sa)
  	if err != nil {
  		return err
  	}
  	allArgs := sa.Args
  	if sa.Function != "" {
  		allArgs = append([]string{sa.Function}, sa.Args...)
  	}
  	c.Args = util.ToChaincodeArgs(allArgs...)
  	return nil
  }
docs: // UnmarshalJSON converts the string-based REST/JSON input to
  // the []byte-based current ChaincodeInput structure.