Added prettyprint for java JSONWriter