signal-estimator icon indicating copy to clipboard operation
signal-estimator copied to clipboard

Support dumps in json format

Open gavv opened this issue 1 year ago • 2 comments

Currently, we support dumps in csv format. It would be nice to also support json.

Json dumps can be useful when dumps and measurement reports are combined in the same file (or stdout). This way, all output will be in json, and it will be easier to parse such combined output.

Steps:

  • add --dump-format option (similar to --report-format), with possible values "csv" and "json" and default value "csv"

  • rename CsvDumper to something like TextDumper

  • teach TextDumper to produce json or csv depending on mode

gavv avatar Oct 29 '23 13:10 gavv

@gavv please assign this issue to me

pravintargaryen avatar Nov 12 '23 16:11 pravintargaryen

Sure, thanks!

gavv avatar Nov 12 '23 17:11 gavv