title: Is it safe to parse json with YAML.load?
body: <p>I am using ruby 2.1.0</p>
  
  <p>I have a json file.
  For example: test.json</p>
  
  <pre><code>    {
        "item":[
          {"apple": 1},
          {"banana": 2}
        ]
     }
  </code></pre>
  
  <p>Is it safe to load this file with YAML.load?</p>
  
  <pre><code>    YAML.load(File.read('test.json'))
  </code></pre>
  
  <p>I am trying to load a file which is in either json or yaml format. </p>