MarshalJSON implements the json.Marshaller interface.
()
| 75 | |
| 76 | // MarshalJSON implements the json.Marshaller interface. |
| 77 | func (msg *Error) MarshalJSON() ([]byte, error) { |
| 78 | return json.API.Marshal(msg.JSON()) |
| 79 | } |
| 80 | |
| 81 | // Error implements the error interface. |
| 82 | func (msg Error) Error() string { |