A terminal utility to pretty print JSON
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dan Cojocaru 10aadc1179
Added parameters in README
4 years ago
bin Added parameters in README 4 years ago
.gitignore First kennson version 4 years ago
CHANGELOG.md First kennson version 4 years ago
README.md Added parameters in README 4 years ago
analysis_options.yaml First kennson version 4 years ago
pubspec.lock First kennson version 4 years ago
pubspec.yaml First kennson version 4 years ago
screenshot.png Added screenshot and build instructions 4 years ago

README.md

kennson

A terminal utility to pretty print JSON.

Screenshot showing kennson pretty printing a JSON file

Build instructions

Make sure you have Dart installed, then run the following:

dart compile exe bin/kennson.dart

The compiled executable will be inside the bin folder, named kennson.exe (regardless of platform).

Parameters

-f, --file=<filename>               Read JSON from file instead of stdin
    --input=<json input>            Read JSON as parameter instead of stdin
    --jsonpath=<JSONPath query>     Display only the matches of the JSON document
-p, --jsonpointer=<JSON Pointer>    Display only the matches of the JSON pointer
-i, --indent                        Set space indentation level (prefix with t for tab indentation)
                                    (defaults to "2")
-d, --max-depth                     Specify maximum nesting before stopping printing