Skip to content

Instantly share code, notes, and snippets.

@tastycode
Created January 25, 2013 12:02
Show Gist options
  • Save tastycode/4633920 to your computer and use it in GitHub Desktop.
Save tastycode/4633920 to your computer and use it in GitHub Desktop.
Terminal Safe JSON

If you could use JSON in the terminal, then applications would have a uniform way of passing in options.

ls [long, {sort: {size: -1}}]

grep [recursive, color]

If we could intercept arguments to commands, we could translate them into the corresponding flags.

The problem is that terminals don't like these characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment