LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jc.json

parses and validates JSON input

TLDR

Parse generic JSON
$ cat [file.json] | jc --json
copy
Validate JSON
$ jc --json < [file.json]
copy
Parse with pretty output
$ jc --json -p < [file.json]
copy
Parse JSON Lines
$ jc --jsonl < [file.jsonl]
copy

SYNOPSIS

jc --json [options]

DESCRIPTION

jc --json parses and validates JSON input. It's the JSON passthrough parser in jc for format validation and normalization.The parser accepts JSON from stdin and outputs formatted JSON. Useful for validating or reformatting JSON data.

PARAMETERS

--json

Parse JSON input.
--jsonl
Parse JSON Lines format.
-p, --pretty
Pretty print output.
-r, --raw
Raw output mode.
--help
Display help information.

CAVEATS

Part of jc toolkit. JSON passthrough parser. Mostly for validation/formatting.

HISTORY

The JSON parser was added to jc to provide a complete set of parsers including JSON input handling.

SEE ALSO

jc(1), jq(1), jsonlint(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid