JSONEncoder works with the `.encoder` option. Fields can implement this to encode their own JSON string straight into the working buffer. This can be useful if you're working with interface fields at runtime.
| 482 | // JSONEncoder works with the `.encoder` option. Fields can implement this to encode their own JSON string straight |
| 483 | // into the working buffer. This can be useful if you're working with interface fields at runtime. |
| 484 | type JSONEncoder interface { |
| 485 | JSONEncode(*Buffer) |
| 486 | } |
| 487 | |
| 488 | // JSONMarshaler works with the `.encoder` option. Fields can implement this to encode their own JSON string straight |
| 489 | // into the provided `io.Writer`. This is useful if you require the functionality of `JSONEncoder` but don't want the hard |
no outgoing calls
no test coverage detected