jq
Format, validate, query and reshape JSON from files or standard input with a local command-line filter.
Visit the official jq websiteWhat jq is useful for
jq fits repeatable terminal work: pretty-printing command output, selecting fields, reshaping arrays and making a JSON result control a script through exit status. It is free, open-source software under the MIT license.
It is not a visual editor or a JSON Schema validator. In our jq 1.7 test, duplicate object keys were silently collapsed and arithmetic on a large integer lost precision.
ToolBrivio coverage
jq review: format and filter JSON from the command line
ToolBrivio JSON Formatter & Validator — a no-install browser alternative for a small document, including duplicate-key warnings.