func (u *URL) MarshalJSON() ([]byte, error) {
	if u == nil {
		panic("cannot marshal nil *charm.URL")
	}
	return json.Marshal(u.FullPath())
}
// MarshalJSON will marshal the URL into a slice of bytes in a JSON
// representation.
MarshalJSON will marshal the URL into a slice of bytes in a JSON
representation.
// MarshalJSON will marshal the URL into a slice of bytes in a JSON // representation .
func (u *URL) MarshalJSON() ([]byte, error) {
	if u == nil {
		panic("cannot marshal nil *charm.URL")
	}
	return json.Marshal(u.FullPath())
}
func ( u * URL ) MarshalJSON ( ) ( [ ] byte , error ) { if u == nil { panic ( " " ) } return json . Marshal ( u . FullPath ( ) ) }
MarshalJSON will marshal the URL into a slice of bytes in a JSON
representation.
MarshalJSON will marshal the URL into a slice of bytes in a JSON representation .