StringElement writes a string element.
(value string)
| 104 | |
| 105 | // StringElement writes a string element. |
| 106 | func (jw *JSONWriter) StringElement(value string) { |
| 107 | jw.beforeElement() |
| 108 | jw.stringValue(value) |
| 109 | } |
| 110 | |
| 111 | func (jw *JSONWriter) stringValue(value string) { |
| 112 | jw.buf = append(jw.buf, '"') |