jdeolive / jsonformat

Simple JSON formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON Formatter

A simple Python script for parsing and formatting a JSON string.

# format from stdin
% echo '{"foo":"bar", "baz": 2}' | python jsonformat.py 

# format from file
% python jsonformat.py /path/to/file.json

# format file inplace
% python jsonformat.py -i /path/to/file.json

# unformat
% python jsonformat.py -u /path/to/file.json

About

Simple JSON formatter


Languages

Language:Python 100.0%