title: Node API function returning array of strings instead of objects
body: <p>I'd like to return an array of JSON objects from this function but I'm having issues with the formatting. I'm new to Node.js and hoping to understand it better.</p>
  
  <pre><code>function getItems (callback) {
    connection.query(SQL_getItems, (err, results) =&gt; {
      if (err) {
        callback(err);
        return;
      }
      callback(null, results.map((item) =&gt; `{'name': '${item.name}', 'value': '${item.value}'}`));
    });
  }
  </code></pre>
  
  <p>The current JSON looks like this:</p>
  
  <pre><code>["name: test, value: 1","name: test2, value: 0"]
  </code></pre>
  
  <p>What I want is an array of JSON objects</p>
  
  <pre><code>[{"name": "test","value": "1"},{"name": "test2","value": "0"}]
  </code></pre>
  
  <p>I've tried tweaking the formatting, but can't get it quite right. I tried JSON.parse but it's already valid (but not ideal) JSON.</p>