diff --git a/pages/common/jless.md b/pages/common/jless.md new file mode 100644 index 0000000000..faf640dfc8 --- /dev/null +++ b/pages/common/jless.md @@ -0,0 +1,37 @@ +# jless + +> View and explore JSON data interactively. +> See also: `jq`, `fx`, `less`. +> More information: . + +- Open a JSON file: + +`jless {{path/to/file.json}}` + +- Read JSON from `stdin`: + +`cat {{path/to/file.json}} | jless` + +- Force YAML parsing regardless of file extension: + +`jless --yaml {{path/to/file}}` + +- Start in line mode (show braces, commas, and quoted object keys): + +`jless {{[-m|--mode]}} line {{path/to/file.json}}` + +- Hide line numbers: + +`jless {{[-N|--no-line-numbers]}} {{path/to/file.json}}` + +- Show relative line numbers: + +`jless {{[-r|--relative-line-numbers]}} {{path/to/file.json}}` + +- [Interactive] Search forward for a pattern (press ``/`` for next/previous match): + +`{{pattern}}` + +- [Interactive] Exit: + +``