Rack middleware for pretty printing JSON responses