title: How do I stop jackson's YAML writer from quoting values
body: <p>I'm working on a project to convert files from JSON to YAML. I'm using the 2.8.3 versions of the following libraries:</p>
  
  <ul>
  <li>jackson-core</li>
  <li>jackson-databind</li>
  <li>jackson-dataformat-yaml</li>
  <li>jackson-annotations</li>
  </ul>
  
  <p>My YAML serialization code is extremely simple:</p>
  
  <pre><code>ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
  ObjectWriter writer = mapper.writer();
  
  try {
      SequenceWriter sw = writer.writeValues(System.out);
      sw.write(tree);
  }
  catch (IOException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>The YAML produced by this code looks like the following:</p>
  
  <pre><code>serviceType: "elasticSearch"
  displayName: "Elasticsearch Service"
  description: "Sample Elastic Search Service"
  </code></pre>
  
  <p>Although it is valid YAML, I don't like the double quotes around the values. You don't need them in YAML and it makes editing the resulting file more cumbersome. Does anyone know how to configure the ObjectWriter to make jackson stop encapsulating String values in quotes?</p>