code: func (t *Template) JSON() ([]byte, error) {
  
  	j, err := json.MarshalIndent(t, "", "  ")
  	if err != nil {
  		return nil, err
  	}
  
  	return intrinsics.ProcessJSON(j, nil)
  
  }
docs: // JSON converts an AWS CloudFormation template object to JSON