title: How to convert environment variable to JSON object?
body: <p>This is my environment variable:</p>
  
  <pre><code>export DATA='{firstName: "OAMAR", lastName: "KANJI"}'
  </code></pre>
  
  <p><code>process.env.DATA</code> sees this as a string but doing something like <code>JSON.parse(process.env.DATA)</code> does not work as the keys in the object are not strings. I.e something like <code>JSON.parse('{"firstName": "OAMAR", "lastName": "KANJI"}')</code> would work but this is not the form of the environment variable.</p>
  
  <p>Any ideas on how to convert the string to JSON?</p>