UnmarshalJSON parses the JSON-encoded data and stores the result in the value pointed to by v.
(content []byte, v interface{})
| 5 | // UnmarshalJSON parses the JSON-encoded data and stores the result |
| 6 | // in the value pointed to by v. |
| 7 | func UnmarshalJSON(content []byte, v interface{}) error { |
| 8 | return json.Unmarshal(content, v) |
| 9 | } |
| 10 | |
| 11 | // MarshalJSON returns the JSON encoding of v. |
| 12 | func MarshalJSON(v interface{}) (out []byte, err error) { |
no outgoing calls
no test coverage detected