NewJSONWriter creates a new JSON writer.
()
| 366 | |
| 367 | // NewJSONWriter creates a new JSON writer. |
| 368 | func NewJSONWriter() *JSONWriter { |
| 369 | return freeJSONWriterPool.Take() |
| 370 | } |
| 371 | |
| 372 | // GetBufferForTesting returns the internal buffer for testing purposes. |
| 373 | // This should only be used in tests. |