-
Notifications
You must be signed in to change notification settings - Fork 521
Open
Labels
Description
Is your feature request related to a problem?
There is currently no way for the user to change the format that OStreamExporters export the data. If the user wants to send their data directly to a json file, it will not be in the correct format.
Describe the solution you'd like
Have the user pass in a boolean for json printing in the constructor. Then in export() format the data what the user has specified. Since the user won't directly call export() it makes sense to pass the boolean in the constructor.
Describe alternatives you've considered
An alternative is to support json formatting as the default and only printing. This doesn't seem ideal as most users will only print to stdout and will have a harder time reading the output.