json-five
json-five copied to clipboard
Provide an interface for specifying preferred output style
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]
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.