MarshalJSON implements the json.Marshaller interface.
()
| 155 | |
| 156 | // MarshalJSON implements the json.Marshaller interface. |
| 157 | func (a errorMsgs) MarshalJSON() ([]byte, error) { |
| 158 | return json.API.Marshal(a.JSON()) |
| 159 | } |
| 160 | |
| 161 | func (a errorMsgs) String() string { |
| 162 | if len(a) == 0 { |