title: Convert JSON to YAML. Parsing JSON to YAML
body: <p>I'm working with configuration files so I need to convert JSON to YAML.
  For example I have this JSON file:</p>
  <pre><code>{
    &quot;foo&quot;: &quot;bar&quot;,
    &quot;baz&quot;: [ &quot;qux&quot;,&quot;quxx&quot;],
    &quot;corge&quot;: null,
    &quot;grault&quot;: 1,
    &quot;garply&quot;: true,
    &quot;waldo&quot;: &quot;false&quot;,
    &quot;fred&quot;: &quot;undefined&quot;,
    &quot;emptyArray&quot;: [],
    &quot;emptyObject&quot;: {},
    &quot;emptyString&quot;: &quot;&quot;
  }
  </code></pre>
  <p>The result should be YAML:</p>
  <pre><code>foo: &quot;bar&quot;
  baz: 
    - &quot;qux&quot;
    - &quot;quxx&quot;
  corge: null
  grault: 1
  garply: true
  waldo: &quot;false&quot;
  fred: &quot;undefined&quot;
  emptyArray: []
  emptyObject: {}
  emptyString: &quot;&quot;
  </code></pre>
  <p>Could you help me?</p>