- public JsonWriterImpl(final OutputStream outputStream) {
- this.writer = new BufferedWriter(new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
-
- objectMapper = new ObjectMapper();
- objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.PUBLIC_ONLY);
- objectMapper.disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET);