diff --git a/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java b/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java index 20ebae3a..53546f7b 100644 --- a/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java +++ b/modules/spectoconfig/src/main/java/com/axway/apim/config/GenerateTemplate.java @@ -121,7 +121,7 @@ public static int generate(String[] args) { objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); objectMapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY); JsonNode jsonNode = objectMapper.convertValue(apiConfig, JsonNode.class); - objectMapper.writeValue(fileWriter, jsonNode); + objectMapper.writerWithDefaultPrettyPrinter().writeValue(fileWriter, jsonNode); LOG.info("Writing APIM CLI configuration file to : {}", params.getConfig()); } } catch (AppException e) {