You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Empty JSON output is 'null' instead of '[]' — breaks jq pipelines #16
Every export subcommand emits the literal string null (plus newline) on stdout when there is no data in the window. The contract (and the CLI's own prime text) say empty results must be [] so callers can pipe to jq without special-casing.
jq 'length' <<< null errors: jq: error: null (null) has no length.
Expected
Empty results print []\n, exit 0. Already fixed on main in commit b580683 (printJSON reflects on nil slices), but missing from the v0.2.1 release. See #14.
Does not reproduce against HEAD b580683. Verified across all five export subcommands: activity|sleep|workouts|measurements|intraday --since 2030-01-01 --format json each emit [] with EXIT=0. Also measurements --types 999 --since 30d --format json -> []. Fixed in commit b580683. Closing.
Activity
DTTerastar commentedon Apr 25, 2026
Does not reproduce against HEAD b580683. Verified across all five export subcommands:
activity|sleep|workouts|measurements|intraday --since 2030-01-01 --format jsoneach emit[]with EXIT=0. Alsomeasurements --types 999 --since 30d --format json->[]. Fixed in commit b580683. Closing.