title: Creating JSON with dynamic fields without using JSON.parse
body: <p>I have a working JavaScript code below which dynamically creates JSON object using JSON.parse method. Is there a shorter way to do this?</p>
  
  <pre><code>var a = '"hi"'; 
  var obj = '{' + a + ':' + '"abc"' + '}';
  console.log(JSON.parse(obj)); // outputs: OBJECT: {"hi":"abc"} 
  </code></pre>
  
  <p>something simplier like...</p>
  
  <pre><code>var a='hi';
  console.log({a:"abc"}); // but outputs: OBJECT: {a:"abc"}
  </code></pre>