title: Convert yaml to json using javascript
body: <p>I got this yaml file:</p>
  <pre><code>description:
    is_a: AnnotationProperty
    labelEN: description
    labelPT: descrição
  
  relevance:
    is_a: AnnotationProperty
    domain: Indicator
    labelEN: relevance
    labelPT: relevância
  
  title:
    is_a: AnnotationProperty
    labelPT: título
    labelEN: title
    range: Literal
  </code></pre>
  <p>and I need to convert it to json, so I can get something like this:</p>
  <pre><code>{
      &quot;description&quot;: {
          &quot;is_a&quot;: &quot;AnnotationProperty&quot;,
          &quot;labelEN&quot;: &quot;description&quot;,
          &quot;labelPT&quot;: &quot;descrição&quot;
      },
      &quot;relevance&quot;: {
          &quot;is_a&quot;: &quot;AnnotationProperty&quot;,
          &quot;domain&quot;: &quot;Indicator&quot;,
          &quot;labelEN&quot;: &quot;relevance&quot;,
          &quot;labelPT&quot;: &quot;relevância&quot;
      },
      &quot;title&quot;: {
          &quot;is_a&quot;: &quot;AnnotationProperty&quot;,
          &quot;labelPT&quot;: &quot;título&quot;,
          &quot;labelEN&quot;: &quot;title&quot;,
          &quot;range&quot;: &quot;Literal&quot;
      }
  }
  </code></pre>
  <p>and save it in a js variable...</p>
  <p>So, how can I do this?</p>
  <p>Hey, please check link below for <a href="https://www.yamlonline.com/" rel="noreferrer">YAML to JSON converter</a>
  <a href="https://www.yamlonline.com/" rel="noreferrer">https://www.yamlonline.com/</a></p>