title: Spring Boot ignores jsonPrettyPrint=true
body: <p>Using Spring Boot 1.1.6.RELEASE I cannot get JSON to pretty print from my MVC controllers - something that should have taken less than a minute (and that we've configured countless times in previous Spring projects) has taken a number of hours.</p>
  
  <p>I've tried various things including:</p>
  
  <p>1) Using the documented auto-configuration in application.properties</p>
  
  <pre><code>http.mappers.jsonPrettyPrint=true
  </code></pre>
  
  <p>Has no effect</p>
  
  <p>2) Creating my own Jackson instance</p>
  
  <pre><code>@Bean
  MappingJackson2HttpMessageConverter jacksonMessageConverter() {
      MappingJackson2HttpMessageConverter mc = ...
      mc.setPrettyPrint(**true**);
      return mc;
  }
  </code></pre>
  
  <p>Has no effect</p>
  
  <p>3) Injecting the containers ObjectMapper and configuring it</p>
  
  <pre><code>@Inject ObjectMapper objectMapper;
  objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>objectMapper.withDefaultPrettyPrinter();
  </code></pre>
  
  <p>Both have no effect</p>
  
  <p>4) Turning off Spring Actuator (in case it was overwriting configuration)</p>
  
  <p>Has no effect</p>
  
  <p>5) Checked, double checked, triple checked I'm calling the right host, shut down to confirm connection refused, changed output to confirm code is the code I'm running</p>
  
  <p>Still no way to configure JSON Pretty printing - has anyone seen this, could it be related to a side effect in Spring IO (1.0.2.RELEASE) or Jackson (fasterxml jackson-core 2.3.4)?</p>