Skip to content

Instantly share code, notes, and snippets.

@kevinjqiu
Created March 27, 2012 21:19
Show Gist options
  • Save kevinjqiu/2220345 to your computer and use it in GitHub Desktop.
Save kevinjqiu/2220345 to your computer and use it in GitHub Desktop.
jsontidy
#! /usr/bin/env python
import sys
import json
print json.dumps(json.loads(sys.stdin.read()), sort_keys=True, indent=4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment