title: Getting error while configuring the jackson mapper object for SerializationFeature.INDENT_OUTPUT
body: <p>I am trying to serialize a domain object I created called User to a json file. </p>
  
  <pre><code>ObjectMapper mapper = new ObjectMapper();
  List&lt;User&gt; users = new ArrayList&lt;User&gt;();
  
      users.add(user1);
      users.add(user2);
      users.add(user3);
  
  mapper.writeValue(file, users);         
  </code></pre>
  
  <p>Above works fine and writes the data in an unfriendly one liner manner to a file. 
  I want to prettify it when writing to the file. So I came across <code>SerializationFeature.INDENT_OUTPUT</code>, but this is not compiling for me for some reason. </p>
  
  <pre><code>mapper.configure(SerializationFeature.INDENT_OUTPUT, true);
  </code></pre>
  
  <p>The error I get in the eclipse compiler is as follows:</p>
  
  <blockquote>
    <p>The method configure(SerializationConfig.Feature, boolean) in the type
    ObjectMapper is not applicable for the arguments
    (SerializationFeature, boolean)</p>
  </blockquote>
  
  <p>What's going on here? Am I missing something obvious? Its not working as shown in documentation. 
  Thank you in advance.</p>