Add appends JSON to the sequence.
(j JSON)
| 201 | |
| 202 | // Add appends JSON to the sequence. |
| 203 | func (b *ArrayBuilder) Add(j JSON) { |
| 204 | b.jsons = append(b.jsons, j) |
| 205 | } |
| 206 | |
| 207 | // Build returns the constructed JSON array. A caller may not modify the array, |
| 208 | // and the ArrayBuilder reserves the right to re-use the array returned (though |