simone-sanfratello / json-stringify-extended

JSON.stringify any data types
17 stars 1 forks source link

Adding Key Quote as options #9

Open sanjyot242 opened 1 year ago

sanjyot242 commented 1 year ago

const options ={ keyQuote: '"' }

passing the above option to stringify but still key are coming in as without quotes .

Removing the if following if condition if (_item.key.match(IRREGULAR_KEY) || !_item.key.match(SQUARED_IN_KEY)) allows me to get quoted key values .