title: Parse the json string without quotes into json
body: <p>Following json string is not converting into json as key is not inside quote.</p>
  
  <pre><code>{file:"http://video.test.com/media/myvideo.mp4", image:"/category/dt/filename.png", width:"100%", height:"100%", stretching:"uniform", autostart:true, modes:[{type:"flash", src:"/swf/external/player.swf"}, {type:"html5"}]}
  </code></pre>
  
  <p>I have tried: </p>
  
  <ol>
  <li><p>JSON.parse -- it does not work as keys are not inside quotes.</p></li>
  <li><p>eval('('+str+')') -- not converting for some reason, also little reluctant for this solution due to security.</p></li>
  <li><p>Manually insert double quotes delimiting colon (:) but one of my
  value, which is a url, too has a colon, as given in the solution:
  <a href="https://stackoverflow.com/questions/44562635/regular-expression-add-double-quotes-around-values-and-keys-in-javascript">regular expression add double quotes around values and keys in javascript</a></p></li>
  </ol>
  
  <p>Why is it difficult to convert this string into json and how to convert it? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var s = '{file:"http://video.test.com/media/myvideo.mp4", image:"/category/dt/filename.png", width:"100%", height:"100%", stretching:"uniform", autostart:true, modes:[{type:"flash", src:"/swf/external/player.swf"}, {type:"html5"}]}';
  
  console.log(eval('(' + s + ')'));</code></pre>
  </div>
  </div>
  </p>