pool.get().bytes(val);
}
}
else {
BytesArray ba = pool.get();
JacksonJsonGenerator generator = new JacksonJsonGenerator(new FastByteArrayOutputStream(ba));
valueWriter.write(value, generator);
generator.flush();
generator.close();
// jackson likely will add leading/trailing "" which are added down the pipeline so remove them