var pg = require('./pg'); function json() {} json.prototype = new pg('json'); var p = json.prototype; p._contentType = "application/json; charset=utf-8"; p.formatResultFields = function(flds) { var nfields = {}; for (var i=0; i