1package json
2
3type Encoder struct{}
4
5// AppendKey appends a new key to the output JSON.
6func (e Encoder) AppendKey(dst []byte, key string) []byte {
7	if dst[len(dst)-1] != '{' {
8		dst = append(dst, ',')
9	}
10	return append(e.AppendString(dst, key), ':')
11}
12