title: Jackson YAML Serialization Object Arrays Format
body: <p>I am trying to format my Jackson Yaml serialization in a certain way.</p>
  
  <pre><code>employees:
   - name: John
     age: 26
   - name: Bill
     age: 17
  </code></pre>
  
  <p>But, when I serialize the object, this is the format that I get.</p>
  
  <pre><code>employees:
   -
    name: John
    age: 26
   -
    name: Bill
    age: 17
  </code></pre>
  
  <p>Is there any way to get rid of the newline at the start of an object in the array? This is purely a personal preference/human readability issue.</p>
  
  <p>These are the properties I'm currently setting on the YAMLFactory:</p>
  
  <pre><code>YAMLFactory yamlFactory = new YAMLFactory()
                  .enable(YAMLGenerator.Feature.MINIMIZE_QUOTES) //removes quotes from strings
                  .disable(YAMLGenerator.Feature.WRITE_DOC_START_MARKER)//gets rid of -- at the start of the file.
                  .enable(YAMLGenerator.Feature.INDENT_ARRAYS);// enables indentation.
  </code></pre>
  
  <p>I've looked in the java docs for the YAMLGenerator in Jackson, and looked at the other questions on stackoverflow, but I can't find an option to do what I'm trying to do.</p>
  
  <p>I've tried CANONICAL_OUTPUT, SPLIT_LINES and LITERAL_BLOCK_STYLE properties, the last one being automatically set when MINIMIZE_QUOTES is set. 
  CANONICAL_OUTPUT seems to add brackets around arrays.
  SPLIT_LINES and LITERAL_BLOCK_STYLE are related to how multi-line strings are handled.</p>