json-five icon indicating copy to clipboard operation
json-five copied to clipboard

Provide an interface for specifying preferred output style

Open spyoungtech opened this issue 5 years ago • 1 comments

The desired output style can be based on many factors, including indentation, quote preference (single or double), trailing commas in arrays/objects, etc.

There should be an interface for specifying this. Perhaps as argument(s) to dump[s]

spyoungtech avatar May 23 '20 01:05 spyoungtech

I'll also tack on that this should provide an interface for things like identifiers and when to display an integer as a hexadecimal number, or floats with leading/trailing decimal points.

spyoungtech avatar May 23 '20 01:05 spyoungtech