tx.success();
}
} else {
final StreamingJsonWriter jsonStreamer = new StreamingJsonWriter(this.propertyView, indentJson, config.getOutputNestingDepth());
// isolate write output
try (final Tx tx = app.tx()) {
response.setContentType("application/json; charset=utf-8");
try (final Writer writer = response.getWriter()) {
jsonStreamer.stream(securityContext, writer, result, baseUrl);
writer.append("\n"); // useful newline
}
tx.success();
}