method
Path.UnmarshalJSON
UnmarshalJSON validates the canonical string before replacing the path.
Arguments
| Argument | Type | Description |
|---|---|---|
encoded | []byte | The encoded value. |
Returns
The declared result.
errorFull signature
func (path *Path) UnmarshalJSON(encoded []byte) errorRelated types
PathAn immutable, validated document field path.