Description
I'm generating PDF reports based on hledger data, and the JSON report format is the most convenient for that (even though the way it serializes the data is a bit unpleasant to work with).
I'm finding that there's no way to adjust the precision on the floating point values, though as a user I was expecting there to be at least some way to obtain the values as they would be rendered in a regular hledger report, including overriding the formatting using -c.
Of course, there is also astyle
. HOWEVER. Its values do not change when adjusting the precision using --commodity-style
. It's also a bit inconvenient to use.
What would be a good way to help here?
One way that's backward-compatible is to add a hledgerRendered
field or such to the aquantity
field.
Activity