because your json deserves better
After installing jlook, it is really easy to use. Just call the executable trough a shell like
jlookIt will ask for a single-line input of valid JSON and, after confirming by pressing enter, try to print out a goodlooking and readable version of whatever you typed in. Also, so you don't have to copy it in every time, you can pipe a string into it like this in bash:
cat test.json | jlookIt will just print out the pretty result which you can pipe pipe into any utility you like. I recommend trying tee to write it into a file like this:
cat test.json | jlook | tee pretty_test.jsonJlook does not depend on any libraries beyond glibc. You will need the gnu c compiler gcc and the make build system. It is designed to be used on a unix-like-system which means that it will probably compile on something else but is not tested.
A build process would look like this:
git clone https://github.com/SyntaxError2505/jlook.git
cd jlook
make DEBUG=0 # If you want to use a debugger on it, set it to 1 or just don't set it (Debug is the standard)
sudo make install # Specify install direcory by using: make install PREFIX=path/to/installWe offer a uninstall target that you can use in the directory like this:
sudo make uninstallit does the same as:
sudo rm -f $(which jlook)