JSONEncoder defines the interface for custom JSON encoders.
| 33 | |
| 34 | // JSONEncoder defines the interface for custom JSON encoders. |
| 35 | type JSONEncoder interface { |
| 36 | EncodeJSON(io.Writer) error |
| 37 | } |
| 38 | |
| 39 | // JSONReader represents a reader which takes an interface value, |
| 40 | // encodes it into JSON, and wraps it in an io.ReadSeeker. |