jspp-stream
v0.0.2
Published
json pretty print stream
Downloads
2
Readme
introduction
JSON pretty print stream
Usage
{"host":"127.0.0.1","ident":"-","user":"frank","time":"[10/Oct/2000:13:55:36 -0700]","req":"GET /apache_pb.gif HTTP/1.0","status":"200","size":"2326","referer":"http://www.example.com/start.html","ua":"Mozilla/4.08 [en] (Win98; I ;Nav)"}
will be
{
"host": "127.0.0.1",
"ident": "-",
"user": "frank",
"time": "[10/Oct/2000:13:55:36 -0700]",
"req": "GET /apache_pb.gif HTTP/1.0",
"status": "200",
"size": "2326",
"referer": "http://www.example.com/start.html",
"ua": "Mozilla/4.08 [en] (Win98; I ;Nav)"
}
from stdin
$ cat test.json | jspp
from file
$ jspp /path/to/file.json
from web
$ jspp http://some.json.com
License
MIT