-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
23 lines (13 loc) · 652 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
1. DESCRIPTION
This is a simple formatter for JSON streams written in portable ANSI C.
You can use this software to make incoming JSON streams more human readable.
It reads data from the standard input line by line and sends it formatted to the standard output.
2. INSTALLATION
On Linux compile the software using "make". On Windows use "make" from Cygwin (http://cygwin.com).
3. COMMAND LINE OPTIONS
You can change default indentation from 2 spaces to any other number with "-n". Example:
jsonformat -n 4
4. USAGE EXAMPLES
cat test.json | jsonformat
jsonformat < test.json
wget -O - http://staff.tumblr.com/api/read/json | jsonformat | less