json5 icon indicating copy to clipboard operation
json5 copied to clipboard

New `stringify` configurability options?

Open adamhamlin opened this issue 3 years ago • 0 comments

This is just a couple suggestions for new configurable options for JSON5.stringify(...):

  • Configure inclusion of trailing comma
  • Configure inclusion of whitespace "padding" for single line output. For example, allow to output { key1: 'value1', key2: 'value2' } instead of {key1:'value1',key2:'value2'}.

Thanks for your consideration!

adamhamlin avatar Mar 20 '22 21:03 adamhamlin