title: SnakeYAML formatting - remove YAML curly brackets
body: <p>I have a code that is dumping a linkedhashmap into a YAML object</p>
  
  <pre><code>public class TestDump {
      public static void main(String[] args) {
          LinkedHashMap&lt;String, Object&gt; values = new LinkedHashMap&lt;String, Object&gt;();
          values.put("one", 1);
          values.put("two", 2);
          values.put("three", 3);
  
          DumperOptions options = new DumperOptions();
          options.setIndent(2);
          options.setPrettyFlow(true);
          Yaml output = new Yaml(options);
  
          File targetYAMLFile = new File("C:\\temp\\sample.yaml");
          FileWriter writer =null;
          try {
              writer = new FileWriter(targetYAMLFile);
          } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
          output.dump(values, writer);
      }
  }
  </code></pre>
  
  <p>But the output looks like this</p>
  
  <pre><code>{
    one: 1,
    two: 2,
    three: 3
  }
  </code></pre>
  
  <p>is there a way to set this to something like this</p>
  
  <pre><code>  one: 1
    two: 2
    three: 3
  </code></pre>
  
  <p>Although the first one is a valid yaml..I wanted the output format to be like the second one.</p>