Convert your JSON objects to a JSON string with single or double quotes.
$ npm install --save json-stringify-plus
const jsonStringifyPlus = require('json-stringify-plus');
const data = {
foo: 'foo',
};
const doubleQuotes = jsonStringifyPlus(data);
// {"foo":"foo"}
const singleQuotes = jsonStringifyPlus(data, { single: true });
// {'foo':'foo'}}
MIT © Vu Tran