title: Ruby on Rails - JSON parse error unexpected token
body: <p>I read json file after load it into json but i got error <strong>JSON::ParserError unexpected token at</strong>, i couldn't json parse.Below i mentioned what i got output after file read</p>
  
  <p>Here my code,</p>
  
  <pre><code>file = File.read("sample.json") 
  hash = JSON.load(file)
  </code></pre>
  
  <p>after read my json file,</p>
  
  <pre><code>"{\"rename\"=&gt;[{\"from\"=&gt;\"TTTC\", \"to\"=&gt;\"AAAB\"}, {\"from\"=&gt;\"AAAA\", \"to\"=&gt;\"Description\"}, {\"from\"=&gt;\"AAAC\", \"to\"=&gt;\"test\"}], \"drop\"=&gt;{\"fields\"=&gt;[\"AAAG\", \"AAAH\"]}}"
  </code></pre>