Skip to content
ANSI C streaming JSON formatter
C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
COPYING
LICENSE
Makefile
README
jsonformat.c
test.json

README

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
You can’t perform that action at this time.