method
ComponentRef.MarshalJSON
MarshalJSON encodes only public static component data. An unspecified reference is null and absent configuration is omitted.
Returns
The declared result.
([]byte, error)Full signature
func (c ComponentRef) MarshalJSON() (
[]byte,
error,
)Related types
ComponentRefComponentRef selects a custom admin component and its optional settings. It changes the UI without changing how the field's value is stored or typed.