ehharvey / lms-2024

3 stars 2 forks source link

JSON output #227

Open ehharvey opened 1 week ago

ehharvey commented 1 week ago

We should have a way to format output in JSON.

Feature flags (#64 ) will be used to switch JSON output on/off. But work on this issue can be done in advance (just be sure to think of how to merge your work later).

For table output, we should use "record" style output (a list of dictionaries, with each dictionary being key = column name and value = row value).

Example

$lms credit list
[
    {
        "name": "Emil Harvey"
     },
    {
        ....
     }
]