### Question:
StreamingJsonSerializer implements JsonSerializer { public String toJson(Object o) { try { String json = objectMapper.writeValueAsString(o); LOG.debug(json); return json; } catch (Exception e) { throw Exceptions.propagate(e); } } StreamingJsonSerializer(ObjectMapper om);  StreamingJsonSerializer(ObjectMapper om, ExecutorService es); BulkOperation createBulkOperation(final Collection<?> objects, final boolean allOrNothing); String toJson(Object o);  }### Answer:
@Test @Ignore public void testToJson() throws IOException { JsonSerializer js = new StreamingJsonSerializer(new ObjectMapper()); BulkOperation op = js.createBulkOperation(createTestData(10000), false); IOUtils.copy(op.getData(), System.out); }