Encode abstracts the underlying json lib used
(w io.Writer, v interface{})
| 35 | |
| 36 | // Encode abstracts the underlying json lib used |
| 37 | func (p *CustomJSONImpl) Encode(w io.Writer, v interface{}) error { |
| 38 | return jsoniter.ConfigCompatibleWithStandardLibrary.NewEncoder(w).Encode(v) |
| 39 | } |
| 40 | |
| 41 | // MarshalJSON abstracts the underlying json lib used |
| 42 | func MarshalJSON(v interface{}) ([]byte, error) { |
no outgoing calls
no test coverage detected