public
Last active

  • Download Gist
jsonpretty.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
jsonpretty: A command-line JSON pretty-printer.
 
Get it: gem install jsonpretty
Source: http://github.com/nicksieger/jsonpretty
 
Example:
 
$ curl -i http://github.com/api/v1/json/nicksieger | jsonpretty
HTTP/1.1 200 OK
Server: nginx/0.6.26
Date: Fri, 20 Feb 2009 19:18:44 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Set-Cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
Status: 200 OK
X-Runtime: 176ms
ETag: "ff9f83dca3a50446908120cf71a1eec3"
Cache-Control: private, max-age=0, must-revalidate
Content-Length: 5916
 
{
"user": {
"name": "Nick Sieger",
"repositories": [
{
"name": "sinatra",
"watchers": 2,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/sinatra",
"fork": true,
"description": "Classy web-development dressed in a DSL",
"forks": 0,
"homepage": "http:\/\/sinatrarb.com",
"owner": "nicksieger"
},
{
"name": "stickshift",
"watchers": 1,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/stickshift",
"fork": false,
"description": "Pedal to the metal manual profiler",
"forks": 0,
"homepage": "",
"owner": "nicksieger"
},
{
"name": "warbler",
"watchers": 58,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/warbler",
"fork": false,
"description": "Warbler chirpily constructs .war files of your Rails applications.",
"forks": 11,
"homepage": "http:\/\/caldersphere.rubyforge.org\/warbler",
"owner": "nicksieger"
},
{
"name": "ci_reporter",
"watchers": 8,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/ci_reporter",
"fork": false,
"description": "CI::Reporter is an add-on to Test::Unit and RSpec that allows you to generate XML reports of your test and\/or spec runs.",
"forks": 3,
"homepage": "http:\/\/caldersphere.rubyforge.org\/ci_reporter",
"owner": "nicksieger"
},
{
"name": "jrexml",
"watchers": 2,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/jrexml",
"fork": false,
"description": "JREXML is an add-on for JRuby that uses a Java pull parser library to speed up REXML.",
"forks": 0,
"homepage": "http:\/\/caldersphere.rubyforge.org\/jrexml",
"owner": "nicksieger"
},
{
"name": "attachment_fu",
"watchers": 1,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/attachment_fu",
"fork": true,
"description": "Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.",
"forks": 0,
"homepage": "http:\/\/weblog.techno-weenie.net",
"owner": "nicksieger"
},
{
"name": "activerecord-jdbc-adapter",
"watchers": 39,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/activerecord-jdbc-adapter",
"fork": false,
"description": "ActiveRecord adapter for JDBC and JRuby",
"forks": 13,
"homepage": "http:\/\/jruby-extras.rubyforge.org\/activerecord-jdbc-adapter",
"owner": "nicksieger"
},
{
"name": "rails",
"watchers": 5,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/rails",
"fork": true,
"description": "Ruby on Rails",
"forks": 1,
"homepage": "http:\/\/rubyonrails.org",
"owner": "nicksieger"
},
{
"name": "webrat",
"watchers": 1,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/webrat",
"fork": true,
"description": "Webrat - Ruby Acceptance Testing for Web applications",
"forks": 0,
"homepage": "http:\/\/www.brynary.com\/uploads\/webrat\/rdoc\/index.html",
"owner": "nicksieger"
},
{
"name": "ruby-processing",
"watchers": 2,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/ruby-processing",
"fork": true,
"description": "Code as Art, Art as Code. Processing and Ruby are meant for each other.",
"forks": 0,
"homepage": "http:\/\/github.com\/jashkenas\/ruby-processing\/wikis",
"owner": "nicksieger"
},
{
"name": "jruby-rack",
"watchers": 47,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/jruby-rack",
"fork": false,
"description": "Rack for JRuby and Java appservers",
"forks": 11,
"homepage": "<span><a href=\"http:\/\/jruby-rack.kenai.com\/pages\/Home\">http:\/\/jruby-rack.kenai.com\/pages\/Home<\/a><\/span>",
"owner": "nicksieger"
},
{
"name": "gitjour",
"watchers": 2,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/gitjour",
"fork": true,
"description": "Serve git and advertise with bonjour",
"forks": 0,
"homepage": "http:\/\/rubyforge.org\/projects\/gitjour",
"owner": "nicksieger"
},
{
"name": "jruby",
"watchers": 28,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/jruby",
"fork": false,
"description": "Git mirror of http:\/\/svn.codehaus.org\/jruby\/trunk\/jruby",
"forks": 2,
"homepage": "http:\/\/wiki.jruby.org\/",
"owner": "nicksieger"
},
{
"name": "multipart-post",
"watchers": 9,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/multipart-post",
"fork": false,
"description": "Adds multipart POST capability to net\/http",
"forks": 1,
"homepage": "",
"owner": "nicksieger"
},
{
"name": "jetty-rails",
"watchers": 2,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/jetty-rails",
"fork": true,
"description": "use jetty to run any warbler based rails project",
"forks": 0,
"homepage": "http:\/\/jetty-rails.rubyforge.net",
"owner": "nicksieger"
},
{
"name": "github-gem",
"watchers": 1,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/github-gem",
"fork": true,
"description": "The official `github` command line helper for simplifying your GitHub experience.",
"forks": 0,
"homepage": "http:\/\/github.com",
"owner": "nicksieger"
},
{
"name": "drbirb",
"watchers": 1,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/drbirb",
"fork": false,
"description": "Simple IRB-over DRb for poking inside your servers",
"forks": 0,
"homepage": "",
"owner": "nicksieger"
},
{
"name": "textmate.el",
"watchers": 1,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/textmate.el",
"fork": true,
"description": "Basic emulation of awesome TextMate features for Emacs.",
"forks": 0,
"homepage": "",
"owner": "nicksieger"
},
{
"name": "advent-jruby",
"watchers": 4,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/advent-jruby",
"fork": false,
"description": "Code for article on Ruby Advent 2008",
"forks": 0,
"homepage": "",
"owner": "nicksieger"
},
{
"name": "rinari",
"watchers": 1,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/rinari",
"fork": true,
"description": "Rinari Is Not A Rails IDE",
"forks": 0,
"homepage": "http:\/\/rinari.rubyforge.org",
"owner": "nicksieger"
},
{
"name": "jsonpretty",
"watchers": 1,
"private": false,
"url": "http:\/\/github.com\/nicksieger\/jsonpretty",
"fork": false,
"description": "Command-line JSON pretty-printer",
"forks": 0,
"homepage": "",
"owner": "nicksieger"
}
],
"blog": "http:\/\/blog.nicksieger.com\/",
"login": "nicksieger",
"email": "nick@nicksieger.com"
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.