add pretty print to JsonPrinter
JsonPrinter do not add pretty newlines for empty objects and arrays