Created
October 8, 2016 18:03
-
-
Save kdheepak/5e4d608f9688f40fb0be8b0b839b2c11 to your computer and use it in GitHub Desktop.
pretty print pandoc json output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
import sys | |
import json | |
def main(arg): | |
print(json.dumps(json.loads(arg), indent=2)) | |
if __name__ == '__main__': | |
main('\n'.join([line for line in sys.stdin])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment