Skip to content

Instantly share code, notes, and snippets.

@jlevy
Created May 28, 2019 01:21
Show Gist options
  • Save jlevy/55c47989faf5f6b24a78b140edf390db to your computer and use it in GitHub Desktop.
Save jlevy/55c47989faf5f6b24a78b140edf390db to your computer and use it in GitHub Desktop.
Command-line JSON pretty-printer
#!/bin/bash
# Convenience script to pretty-print and browse colored JSON without remembering flags.
# Read from files or stdin.
jq -C . "$@" | less -R -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment