NAME

jq - JSON query command for Developer Dashboard

SYNOPSIS

dashboard jq [path] [file]

DESCRIPTION

This command provides JSON path extraction for Developer Dashboard.

PURPOSE

This staged helper owns the public dashboard jq command. It accepts an optional dotted JSON path plus an optional input file, then hands the request to the shared query runtime so parsing, file-vs-STDIN handling, and output formatting stay consistent with the rest of the dashboard toolchain.

WHY IT EXISTS

It exists because the dashboard ships a private, repo-local JSON inspection tool instead of depending on a globally installed parser binary. Keeping jq as a staged helper also preserves the thin-switchboard contract in bin/dashboard.

WHEN TO USE

Use this file when you are changing how dashboard jq chooses between STDIN and files, how it reports parse errors, or how the staged helper is wired into the shared query implementation.

HOW TO USE

Users run dashboard jq [path] [file]. The staged helper under ~/.developer-dashboard/cli/dd/jq re-enters the shared query runtime, which parses JSON, accepts the file and path in either order, reads STDIN when no file is given, prints scalar hits as plain text, and prints the whole parsed document when the path is $d or ..

WHAT USES IT

It is used by the public dashboard jq command, by shell snippets that want a runtime-local JSON query tool, by integration smoke runs, and by the focused query-helper coverage under t/.

EXAMPLES

printf '{"alpha":{"beta":2}}' | dashboard jq alpha.beta
dashboard jq response.json '$d'
dashboard jq '$d' response.json
printf '{"ok":true}' | dashboard jq ok