method
Reference.MarshalJSON
MarshalJSON retains the authored scope and path.
Returns
The declared result.
([]byte, error)Full signature
func (r Reference) MarshalJSON() (
[]byte,
error,
)Related types
ReferenceReference is an immutable field selector. Its dot-separated path names stored fields through non-repeated groups or named tabs, excluding presentation wrappers and repeated row selectors. Each use resolves in its own field scope.