keshavdv / victron-ble

A Python API to parse Victron Instant Readout BLE advertisements
The Unlicense
102 stars 34 forks source link

Output JSON which is on a single line #59

Closed zouppen closed 1 month ago

zouppen commented 2 months ago

Summary :memo:

This patch formats JSON on a single line

Details

Outputting JSON on single line helps to parse the payload programmatically. This is a proposal since I'd like to get your opinion about should this be the default format or should there be a command-line option which is straightforward to add since I already added the formatting option to the constructor.