method
Path.MarshalJSON
MarshalJSON encodes a path in its canonical dot-separated form.
Returns
The declared result.
([]byte, error)Full signature
func (path Path) MarshalJSON() (
[]byte,
error,
)Related types
PathAn immutable, validated document field path.