Return compact JSON from v2 service
@@ -30,9 +30,7 @@ public final class BatfishObjectMapper {
baseMapper().enable(SerializationFeature.INDENT_OUTPUT).writer(PRETTY_PRINTER);
private static final ObjectMapper VERBOSE_MAPPER =
- baseMapper()
- .enable(SerializationFeature.INDENT_OUTPUT)
- .setSerializationInclusion(Include.ALWAYS);
+ baseMapper().setSerializationInclusion(Include.ALWAYS);
private static final ObjectWriter VERBOSE_WRITER = VERBOSE_MAPPER.writer(PRETTY_PRINTER);
@@ -74,7 +72,7 @@ public final class BatfishObjectMapper {
/**
* Returns a {@link ObjectMapper} configured to Batfish JSON standards. Relative to {@link
- * #mapper()}, it indents the JSON and includes null values and empty lists.
+ * #mapper()}, it includes null values and empty lists.
*/
public static ObjectMapper verboseMapper() {
return VERBOSE_MAPPER;
@@ -82,7 +80,7 @@ public final class BatfishObjectMapper {
/**
* Returns a {@link ObjectWriter} configured to Batfish JSON standards. The JSON produced is
- * verbosely pretty-printed; all fields are included.
+ * verbosely but not pretty printed (including all fields).
*
* @see BatfishObjectMapper#writer()
* @see BatfishObjectMapper#prettyWriter()
