function json_sender(data, req, res, next) {
		debug.assert(data).is('object');
		debug.assert(req).is('object');
		debug.assert(res).is('object');
		debug.assert(next).is('function');

		var content;

		if(req.headers['x-pretty-print'] || req.headers['x-pretty-json']) {
			content = JSON.stringify(data, null, 2);
		} else {
			content = JSON.stringify(data);
		}

		if(content) {
			// Only set headers if not sent already and no content-type queued
			if( (!res.headersSent) && (!res.getHeader('content-type')) ) {
				res.set('Content-Type', 'application/json;charset=utf-8');
			}
			res.send(content + '\n');
		}
	}
function json_sender(data, req, res, next) {
		debug.assert(data).is('object');
		debug.assert(req).is('object');
		debug.assert(res).is('object');
		debug.assert(next).is('function');

		var content;

		if(req.headers['x-pretty-print'] || req.headers['x-pretty-json']) {
			content = JSON.stringify(data, null, 2);
		} else {
			content = JSON.stringify(data);
		}

		if(content) {
			
			if( (!res.headersSent) && (!res.getHeader('content-type')) ) {
				res.set('Content-Type', 'application/json;charset=utf-8');
			}
			res.send(content + '\n');
		}
	}
function json_sender ( data , req , res , next ) { debug . assert ( data ) . is ( 'object' ) ; debug . assert ( req ) . is ( 'object' ) ; debug . assert ( res ) . is ( 'object' ) ; debug . assert ( next ) . is ( 'function' ) ; var content ; if ( req . headers [ 'x-pretty-print' ] || req . headers [ 'x-pretty-json' ] ) { content = JSON . stringify ( data , null , 2 ) ; } else { content = JSON . stringify ( data ) ; } if ( content ) { // Only set headers if not sent already and no content-type queued if ( ( ! res . headersSent ) && ( ! res . getHeader ( 'content-type' ) ) ) { res . set ( 'Content-Type' , 'application/json;charset=utf-8' ) ; } res . send ( content + '\n' ) ; } }
debug.log('here');
debug . log ( here ) ;